diff --git a/src/util/depth.h b/src/util/depth.h index bd9d67a6..9af1ded8 100644 --- a/src/util/depth.h +++ b/src/util/depth.h @@ -34,14 +34,13 @@ #define DEPTH_H #include "ue2common.h" +#include "util/hash.h" #include "util/operators.h" #ifdef DUMP_SUPPORT #include #endif -#include - namespace ue2 { /** @@ -258,13 +257,11 @@ struct DepthMinMax : totally_ordered { /** \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); } /**