mirror of https://gitee.com/bigwinds/arangodb
fix compile error
This commit is contained in:
parent
2003524a3d
commit
7924c89a69
|
@ -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 {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue