Created
March 22, 2013 11:04
-
-
Save vitallium/5220503 to your computer and use it in GitHub Desktop.
VS2012 fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h b/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h | |
index 82245f3..932d254 100644 | |
--- a/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h | |
+++ b/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h | |
@@ -175,18 +175,20 @@ namespace WTF { | |
} | |
template<typename T, typename U, typename V> | |
- inline pair<typename HashSet<T, U, V>::iterator, bool> HashSet<T, U, V>::add(const ValueType& value) | |
+ inline pair<typename HashSet<T,U,V>::const_iterator, bool> HashSet<T,U,V>::add(const ValueType &value) | |
{ | |
- return m_impl.add(value); | |
+ auto p= m_impl.add(value); | |
+ return make_pair(typename HashSet<T,U,V>::const_iterator(p.first), p.second); | |
} | |
template<typename Value, typename HashFunctions, typename Traits> | |
template<typename T, typename HashTranslator> | |
inline pair<typename HashSet<Value, HashFunctions, Traits>::iterator, bool> | |
- HashSet<Value, HashFunctions, Traits>::add(const T& value) | |
+ HasSet<Value, HashFunctions, Traits>::add(const T& value) | |
{ | |
typedef HashSetTranslatorAdapter<ValueType, ValueTraits, T, HashTranslator> Adapter; | |
- return m_impl.template addPassingHashCode<T, T, Adapter>(value, value); | |
+ auto p = m_impl.template addPassingHashCode<T, T, Adapter>(value, value); | |
+ return make_pair(typename HashSet<Value, HashFunctions, Traits>::iterator(p.first), p.second); | |
} | |
template<typename T, typename U, typename V> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 21 is not correct. Guess HasSet is just a typo, thus ignore this line change and stick to the original line 20. Confirmed successfull compile of webkit with this fix on Win7 VS2012 x64. Ty anyway.