From b0c990441423dfe3000ef1e46c3c2117860c5dce Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 16 Jul 2022 13:37:15 +0300 Subject: [PATCH] Test _MSVC_STL_VERSION instead of BOOST_MSVC because clang-cl --- include/boost/container_hash/hash.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/container_hash/hash.hpp b/include/boost/container_hash/hash.hpp index b9dbf8e..8d8df3d 100644 --- a/include/boost/container_hash/hash.hpp +++ b/include/boost/container_hash/hash.hpp @@ -417,7 +417,7 @@ namespace boost return boost::hash_unordered_range( v.begin(), v.end() ); } -#if defined(BOOST_MSVC) && BOOST_MSVC >= 1910 && BOOST_MSVC < 1920 && BOOST_CXX_VERSION >= 201700L +#if defined(_MSVC_STL_VERSION) && _MSVC_STL_VERSION == 141 && BOOST_CXX_VERSION >= 201700L // resolve ambiguity with unconstrained stdext::hash_value in :-/ @@ -670,7 +670,7 @@ namespace boost } }; -#if defined(BOOST_MSVC) && BOOST_MSVC >= 1910 && BOOST_MSVC < 1920 && BOOST_CXX_VERSION >= 201700L +#if defined(_MSVC_STL_VERSION) && _MSVC_STL_VERSION == 141 && BOOST_CXX_VERSION >= 201700L // msvc-14.1 has stdext::hash_value for basic_string in :-/