mirror of
https://github.com/boostorg/container_hash.git
synced 2025-08-05 07:24:34 +02:00
Update workaround for Dinkumware stdext::hash_value
This commit is contained in:
@@ -417,7 +417,9 @@ namespace boost
|
|||||||
return boost::hash_unordered_range( v.begin(), v.end() );
|
return boost::hash_unordered_range( v.begin(), v.end() );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_MSVC_STL_VERSION) && _MSVC_STL_VERSION == 141 && BOOST_CXX_VERSION >= 201700L
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && ( \
|
||||||
|
( defined(_MSVC_STL_VERSION) && _MSVC_STL_VERSION < 142 ) || \
|
||||||
|
( !defined(_MSVC_STL_VERSION) && defined(_CPPLIB_VER) && _CPPLIB_VER >= 520 ) )
|
||||||
|
|
||||||
// resolve ambiguity with unconstrained stdext::hash_value in <xhash> :-/
|
// resolve ambiguity with unconstrained stdext::hash_value in <xhash> :-/
|
||||||
|
|
||||||
@@ -702,9 +704,11 @@ namespace boost
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(_MSVC_STL_VERSION) && _MSVC_STL_VERSION == 141 && BOOST_CXX_VERSION >= 201700L
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && ( \
|
||||||
|
( defined(_MSVC_STL_VERSION) && _MSVC_STL_VERSION < 142 ) || \
|
||||||
|
( !defined(_MSVC_STL_VERSION) && defined(_CPPLIB_VER) && _CPPLIB_VER >= 520 ) )
|
||||||
|
|
||||||
// msvc-14.1 has stdext::hash_value for basic_string in <xhash> :-/
|
// Dinkumware has stdext::hash_value for basic_string in <xhash> :-/
|
||||||
|
|
||||||
template<class E, class T, class A> struct hash< std::basic_string<E, T, A> >
|
template<class E, class T, class A> struct hash< std::basic_string<E, T, A> >
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user