mirror of https://github.com/CGAL/cgal
variable must be constexpr too
This commit is contained in:
parent
02e3d25914
commit
2edab88f81
|
|
@ -136,7 +136,7 @@ public:
|
||||||
|
|
||||||
static std::size_t hash_value(const T* p) {
|
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);
|
return reinterpret_cast<std::size_t>(p) >> shift; // AF: was: / sizeof(T);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue