From 2edab88f8176732b52f9db00d6d8b26920b05246 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 30 Oct 2019 09:24:58 +0100 Subject: [PATCH] variable must be constexpr too --- STL_Extension/include/CGAL/Time_stamper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STL_Extension/include/CGAL/Time_stamper.h b/STL_Extension/include/CGAL/Time_stamper.h index 3b93ea54cfb..c597ab00a89 100644 --- a/STL_Extension/include/CGAL/Time_stamper.h +++ b/STL_Extension/include/CGAL/Time_stamper.h @@ -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(p) >> shift; // AF: was: / sizeof(T); }