From: Justin Viiret Date: Thu, 30 Mar 2017 06:00:52 +0000 (+1100) Subject: depth: use hash_all() X-Git-Tag: v4.5.0^2~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4ae755d8f3d2fa7707793c3590a348b71afb92;p=thirdparty%2Fvectorscan.git depth: use hash_all() --- 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); } /**