variable must be constexpr too

This commit is contained in:
Andreas Fabri 2019-10-30 09:24:58 +01:00 committed by Laurent Rineau
parent 02e3d25914
commit 2edab88f81
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public:
static std::size_t hash_value(const T* p) {
std::size_t shift = internal::rounded_down_log2(sizeof(p));
constexpr std::size_t shift = internal::rounded_down_log2(sizeof(p));
return reinterpret_cast<std::size_t>(p) >> shift; // AF: was: / sizeof(T);
}