diff --git a/arangod/Aql/Types.h b/arangod/Aql/Types.h index 66377ae3ef..19d4c80178 100644 --- a/arangod/Aql/Types.h +++ b/arangod/Aql/Types.h @@ -264,23 +264,15 @@ namespace triagens { /// @brief hash function for AqlValue objects //////////////////////////////////////////////////////////////////////////////// -#if 0 - template class std::hash { - size_t operator() (T const& x) { - return 0; - } - }; +namespace std { -template<> class std::hash : -#endif - -template<> struct std::hash { +template<> struct hash { size_t operator () (triagens::aql::AqlValue const& x) const { return 1; } }; -template<> struct std::equal_to { +template<> struct equal_to { bool operator () (triagens::aql::AqlValue const& a, triagens::aql::AqlValue const& b) const { if (a._type != b._type) { @@ -307,6 +299,8 @@ template<> struct std::equal_to { } }; +} + namespace triagens { namespace aql {