diff options
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r-- | src/emscripten-optimizer/istring.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/emscripten-optimizer/istring.h b/src/emscripten-optimizer/istring.h index 21f94fcb9..ccb08bf4b 100644 --- a/src/emscripten-optimizer/istring.h +++ b/src/emscripten-optimizer/istring.h @@ -161,16 +161,13 @@ struct IString { namespace std { -template<> -struct hash<cashew::IString> : public unary_function<cashew::IString, size_t> { +template<> struct hash<cashew::IString> { size_t operator()(const cashew::IString& str) const { return std::hash<size_t>{}(size_t(str.str)); } }; -template<> -struct equal_to<cashew::IString> - : public binary_function<cashew::IString, cashew::IString, bool> { +template<> struct equal_to<cashew::IString> { bool operator()(const cashew::IString& x, const cashew::IString& y) const { return x == y; } |