Skip to content

Commit fe197be

Browse files
committed
[meta.reflection.queries]/4.3 Fix syntax in example
The parenthesis in the example seem to do the wrong grouping. To fix, remove one set of parens. This brings the example in line with P2996R13 from which this wording originates.
1 parent 8fe775a commit fe197be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/meta.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3982,10 +3982,10 @@
39823982
int x;
39833983
int& y = x;
39843984

3985-
static_assert(^^x != ^^y); // OK, \tcode{r} and \tcode{y} are different variables so their
3986-
// reflections compare different
3987-
static_assert(object_of((^^x) == object_of(^^y))); // OK, because \tcode{y} is a reference
3988-
// to \tcode{x}, their underlying objects are the same
3985+
static_assert(^^x != ^^y); // OK, \tcode{r} and \tcode{y} are different variables so their
3986+
// reflections compare different
3987+
static_assert(object_of(^^x) == object_of(^^y)); // OK, because \tcode{y} is a reference
3988+
// to \tcode{x}, their underlying objects are the same
39893989
\end{codeblock}
39903990
\end{example}
39913991

0 commit comments

Comments
 (0)