]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
depth: use hash_all()
authorJustin Viiret <justin.viiret@intel.com>
Thu, 30 Mar 2017 06:00:52 +0000 (17:00 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:19:22 +0000 (15:19 +1000)
src/util/depth.h

index bd9d67a6168cb535fa5b38e6914c83acbcc4f445..9af1ded880d9c511b3f7d51ac0fecf941679be36 100644 (file)
 #define DEPTH_H
 
 #include "ue2common.h"
+#include "util/hash.h"
 #include "util/operators.h"
 
 #ifdef DUMP_SUPPORT
 #include <string>
 #endif
 
-#include <boost/functional/hash/hash_fwd.hpp>
-
 namespace ue2 {
 
 /**
@@ -258,13 +257,11 @@ struct DepthMinMax : totally_ordered<DepthMinMax> {
     /** \brief Render as a string, useful for debugging. */
     std::string str() const;
 #endif
+
 };
 
 inline size_t hash_value(const DepthMinMax &d) {
-    size_t val = 0;
-    boost::hash_combine(val, d.min);
-    boost::hash_combine(val, d.max);
-    return val;
+    return hash_all(d.min, d.max);
 }
 
 /**