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

This commit is contained in:
Ion Gaztañaga committed 2023-12-31 23:45:45 +01:00
1 parent a15334305d
commit 8b4297b1db
13 files changed
+25 -62

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@
#include<boost/intrusive/splaytree.hpp>
#include<boost/intrusive/treap.hpp>
#include<boost/intrusive/hashtable.hpp>
#include<boost/functional/hash.hpp>
#include <vector> //std::vector
#include <cstddef> //std::size_t
@@ -47,7 +47,7 @@ class MyClass : public any_base_hook<>
{ return l.int_ == r.int_; }
friend std::size_t hash_value(const MyClass &o)
{ return boost::hash<int>()(o.get()); }
{ return std::size_t(o.get()); }
friend bool priority_order(const MyClass &a, const MyClass &b)
{ return a.int_ < b.int_; }