1
0
Fork 0

fix compile error

This commit is contained in:
Jan Steemann 2014-08-05 13:56:26 +02:00
parent 2003524a3d
commit 7924c89a69
1 changed files with 5 additions and 11 deletions

View File

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