diff --git a/lib/genesis/utils/math/bit.hpp b/lib/genesis/utils/math/bit.hpp index b6c6a8ce..d6977841 100644 --- a/lib/genesis/utils/math/bit.hpp +++ b/lib/genesis/utils/math/bit.hpp @@ -70,7 +70,7 @@ namespace utils { */ template inline -#if defined(__cpp_lib_bitops) || defined(GENESIS_HAS_BUILTIN_POPCOUNT) +#if GENESIS_CPP_STD >= GENESIS_CPP_STD_14 && ( defined(__cpp_lib_bitops) || defined(GENESIS_HAS_BUILTIN_POPCOUNT) ) constexpr #endif typename std::enable_if::value, uint64_t>::type @@ -93,7 +93,6 @@ pop_count( T n ) } else { return __builtin_popcountll( static_cast( n )); } - return 0; #else