From 7924c89a698e174f11d9b387111c1afc1f9efbef Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Tue, 5 Aug 2014 13:56:26 +0200 Subject: [PATCH] fix compile error --- arangod/Aql/Types.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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 {