2
0
mirror of https://github.com/boostorg/hash2.git synced 2026-01-31 20:22:10 +00:00

Remove constexpr from pointer overloads; these are never constexpr, even if rewritten with bit_cast

This commit is contained in:
Peter Dimov
2024-11-03 20:28:48 +02:00
parent 5a81d36da5
commit aa0b35d202

View File

@@ -175,10 +175,9 @@ template<class Hash, class Flavor, class T>
}
// pointer types
// not constexpr
// never constexpr
template<class Hash, class Flavor, class T>
BOOST_CXX14_CONSTEXPR
typename std::enable_if< std::is_pointer<T>::value, void >::type
do_hash_append( Hash& h, Flavor const& f, T const& v )
{
@@ -204,9 +203,9 @@ template<class Hash, class Flavor, class T>
}
// std::nullptr_t
// not constexpr for consistency with T*
template<class Hash, class Flavor, class T>
BOOST_CXX14_CONSTEXPR
typename std::enable_if< std::is_same<T, std::nullptr_t>::value, void >::type
do_hash_append( Hash& h, Flavor const& f, T const& v )
{