We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6afcac commit 94990bfCopy full SHA for 94990bf
headers/02-constexpr.cpp
@@ -4,6 +4,9 @@
4
#include <cmath>
5
using namespace std;
6
7
+// Note: currently, not all compilers mark `acos` as a
8
+// constexpr function in cmath. The following line might
9
+// not compile with `clang++` for example.
10
constexpr double PI1 = acos(-1.0);
11
constexpr double PI2 = 22.0 / 7.0;
12
modules/02-constexpr.cpp
@@ -3,6 +3,9 @@
3
import std;
0 commit comments