Skip to content

Commit e175865

Browse files
committed
[temp] Add L suffix to literal value example definition of constexpr
variable template 'pi', to address questions about whether it would do the right thing for 'long double'.
1 parent 120f503 commit e175865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
\enterexample
6464
\begin{codeblock}
6565
template<class T>
66-
constexpr T pi = T(3.1415926535897932385);
66+
constexpr T pi = T(3.1415926535897932385L);
6767
template<class T>
6868
T circular_area(T r) {
6969
return pi<T> * r * r;

0 commit comments

Comments
 (0)