Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94990bf

Browse files
committed
Updates from pull request#4
1 parenta6afcac commit94990bf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎headers/02-constexpr.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include<cmath>
55
usingnamespacestd;
66

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.
710
constexprdouble PI1 = acos(-1.0);
811
constexprdouble PI2 =22.0 /7.0;
912

‎modules/02-constexpr.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import std;
44
usingnamespacestd;
55

6+
// Note: currently, not all compilers mark `acos` as a
7+
// constexpr function in cmath. The following line might
8+
// not compile with `clang++` for example.
69
constexprdouble PI1 = acos(-1.0);
710
constexprdouble PI2 =22.0 /7.0;
811

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp