Skip to content

Commit c84e2cb

Browse files
jakubjelinektkoeppe
authored andcommitted
[expr.const] Use different classes for unrelated parts of the example
1 parent 5c10bf3 commit c84e2cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/expressions.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9381,11 +9381,12 @@
93819381
std::meta::define_aggregate(^^S7, {}); // error: consteval block \#1 does not enclose itself,
93829382
// but encloses \tcode{S7}
93839383

9384+
struct S8; // local class
93849385
consteval { // \#2
93859386
std::meta::define_aggregate(^^S6, {}); // error: consteval block \#1 encloses
93869387
// consteval block \#2 but not \tcode{S6}
93879388

9388-
std::meta::define_aggregate(^^S7, {}); // OK, consteval block \#1 encloses both \#2 and \tcode{S7}
9389+
std::meta::define_aggregate(^^S8, {}); // OK, consteval block \#1 encloses both \#2 and \tcode{S8}
93899390
}
93909391
}
93919392
\end{codeblock}

0 commit comments

Comments
 (0)