hash function for pair is already defined in VS

This commit is contained in:
Cheng Zhao 2016-05-11 21:20:40 +09:00
parent 12d40cd310
commit ff3104b44b

View file

@ -14,9 +14,10 @@
#include "native_mate/dictionary.h"
#include "v8/include/v8-profiler.h"
// Following code should be removed after we upgraded to Chrome 50.
#if !defined(COMPILER_MSVC)
namespace base {
// Following code should be removed after we upgraded to Chrome 50.
template <typename T1, typename T2>
inline size_t HashInts(T1 value1, T2 value2) {
// This condition is expected to be compile-time evaluated and optimised away
@ -40,6 +41,7 @@ struct hash<std::pair<Type1, Type2>> {
};
} // namespace std
#endif // defined(COMPILER_MSVC)
namespace mate {