From 63f3778db3182bf994e9c80736889e53813e0d3f Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 12 Jun 2006 17:58:12 +0000 Subject: [PATCH] Add support for long long on win64 as that's the only 64-bit type on that platform (and std::size_t is 64 bit). [SVN r34287] --- include/boost/functional/hash/hash.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index dbff12b..8a0d666 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -116,8 +116,13 @@ namespace boost return static_cast(v); } -#if defined(BOOST_MSVC) && defined(_WIN64) - inline std::size_t hash_value(std::size_t v) +#if defined(_M_X64) && defined(_WIN64) + inline std::size_t hash_value(long long v) + { + return v; + } + + inline std::size_t hash_value(unsigned long long v) { return v; }