Skip to content

Commit ca7633d

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. Signed-off-by: Frank Birbacher <frank.birbacher@gmail.com>
1 parent 8fe775a commit ca7633d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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)