Skip to content

Commit faacec0

Browse files
committed
Update constexpr comment
1 parent c80f12a commit faacec0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/to_cpp1.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,11 +4606,12 @@ class cppfront
46064606
// functions that have captures, the intent is that '==' implies "the result
46074607
// always the same (depends only on the arguments)." Specifically, the result
46084608
// doesn't depend on the captured state, so the captured state should be const.
4609-
// But until we want to take a dependency on C++23 (P2242) to make more lambdas
4610-
// work with 'constexpr' even when not invoked in constexpr contexts, we will
4611-
// emit it as const/whitespace instead for now.
4609+
// But until we want to take a dependency on post-C++20 constexpr relaxation
4610+
// to make more code work with 'constexpr' even when not invoked in constexpr
4611+
// contexts, we will emit it as const/whitespace instead for now.
46124612
//
4613-
// printer.print_cpp2( " constexpr", n.position() ); // deliberately disabled until future
4613+
// printer.print_cpp2( " constexpr", n.position() );
4614+
// // consider enabling when P2242, P2280, and similar papers are widely implemented
46144615
}
46154616
else {
46164617
printer.print_cpp2( " mutable", n.position() );

0 commit comments

Comments
 (0)