Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-11-18 16:02:53 +0300
committerLev Dragunov <l.dragunov@corp.mail.ru>2015-11-18 16:02:53 +0300
commit0b6573d4688071689557df54f4c331860111e2d4 (patch)
tree6a3630d9594f3b9469a371751e6c9468f155a982 /std
parent135a8b2b1545094a14f9d7327fb540d1ba29df6a (diff)
PR fixes.
Diffstat (limited to 'std')
-rw-r--r--std/cmath.hpp8
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); }
}