From aa0b35d202bfec57ae25516e98bf2fffe27bb5be Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 3 Nov 2024 20:28:48 +0200 Subject: [PATCH] Remove `constexpr` from pointer overloads; these are never constexpr, even if rewritten with bit_cast --- include/boost/hash2/hash_append.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/hash2/hash_append.hpp b/include/boost/hash2/hash_append.hpp index 7605cc2..dd3efdc 100644 --- a/include/boost/hash2/hash_append.hpp +++ b/include/boost/hash2/hash_append.hpp @@ -175,10 +175,9 @@ template } // pointer types -// not constexpr +// never constexpr template - BOOST_CXX14_CONSTEXPR typename std::enable_if< std::is_pointer::value, void >::type do_hash_append( Hash& h, Flavor const& f, T const& v ) { @@ -204,9 +203,9 @@ template } // std::nullptr_t +// not constexpr for consistency with T* template - BOOST_CXX14_CONSTEXPR typename std::enable_if< std::is_same::value, void >::type do_hash_append( Hash& h, Flavor const& f, T const& v ) {