Fix older GCC compiler error.

This commit is contained in:
Wilson Snyder 2020-06-01 09:08:50 -04:00
parent a57826b125
commit ae448e5ef9
2 changed files with 8 additions and 2 deletions

View File

@ -55,6 +55,12 @@ inline size_t vl_hash_bytes(const void* vbufp, size_t nbytes) {
return hash;
}
template <> inline size_t vl_hash<int>::operator()(const int& k) const { return k; }
template <> inline bool vl_equal_to<int>::operator()(const int& a, const int& b) const {
return a == b;
}
template <> inline size_t vl_hash<unsigned int>::operator()(const unsigned int& k) const {
return k;
}