diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/cmath.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/cmath.hpp b/std/cmath.hpp index 8af5e5307a..dbd007bf76 100644 --- a/std/cmath.hpp +++ b/std/cmath.hpp @@ -13,10 +13,10 @@ namespace math { - static const double pi = 3.14159265358979323846; - static const double pi2 = pi / 2.; - static const double pi4 = pi / 4.; - static const double twicePi = 2. * pi; + double constexpr pi = 3.14159265358979323846; + double constexpr pi2 = pi / 2.; + double constexpr pi4 = pi / 4.; + double constexpr twicePi = 2. * pi; template <class T> T sqr(T t) { return (t*t); } } |