From aa4ae755d8f3d2fa7707793c3590a348b71afb92 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Thu, 30 Mar 2017 17:00:52 +1100 Subject: [PATCH] depth: use hash_all() --- src/util/depth.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); } /**