I can have a definition like this in a header file?
constexpr double PI=3.14;
Is there any problem in having this in a header file that would
In C++17 you are clear. In C++11, you can wrap it in a function:
C++17
C++11
constexpr double PI () { return 3.14; }