Use custom hash functions as Boost.ContainerHash requires C++11.

This commit is contained in:
Ion Gaztañaga
2023-12-31 23:45:45 +01:00
parent a15334305d
commit 8b4297b1db
13 changed files with 25 additions and 62 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class MyClass
{ return l.int_ == r.int_; }
friend std::size_t hash_value(const MyClass &v)
{ return boost::hash_value(v.int_); }
{ return std::size_t(v.int_); }
friend bool priority_order(const MyClass &l, const MyClass &r)
{ return l.int_ < r.int_; }