CortidQCT  1.2.2.52
CommonMath.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 #if defined(_MSC_VER)
16 # define _USE_MATH_DEFINES
17 #endif
18 
19 #include <cmath>
20 
21 #ifndef M_PI
22 # define M_PI \
23  3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211
24 #endif
25 
26 namespace CortidQCT {
27 namespace Internal {
28 
29 template <class T> inline constexpr auto square(T &&x) { return x * x; }
30 
31 } // namespace Internal
32 } // namespace CortidQCT
33 
Name namespace for CortidQCT library.
Definition: CortidQCT.h:23