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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user