Skip to content

Commit 7694253

Browse files
committed
FIXUP (lib) spacing, markup escaping
1 parent 7fdf9a8 commit 7694253

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

source/meta.tex

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@
27462746
consteval info data_member_spec(info type, data_member_options options);
27472747
consteval bool is_data_member_spec(info r);
27482748
template<@\libconcept{reflection_range}@ R = initializer_list<info>>
2749-
consteval info define_aggregate(info type_class, R&&);
2749+
consteval info define_aggregate(info type_class, R&&);
27502750

27512751
// associated with \ref{meta.unary.cat}, primary type categories
27522752
consteval bool is_void_type(info type);
@@ -2963,8 +2963,7 @@
29632963
constexpr string_view sv = identifier_of(^^C);
29642964
static_assert(sv == "C");
29652965
static_assert(sv.data()[0] == 'C');
2966-
%TODO: investigate if this is how we usually do backslashes in code blocks
2967-
static_assert(sv.data()[1] == '@\textbackslash@ 0');
2966+
static_assert(sv.data()[1] == '@\textbackslash{}@0');
29682967
\end{codeblock}
29692968
\end{example}
29702969

@@ -3371,35 +3370,35 @@
33713370
\effects
33723371
Equivalent to:
33733372
\begin{codeblock}
3374-
return reflect_constant([: \placeholder{R} :]);
3373+
return reflect_constant([: @\placeholder{R}@ :]);
33753374
\end{codeblock}
33763375
\begin{example}
33773376
\begin{codeblock}
33783377
constexpr int x = 0;
33793378
constexpr int y = 0;
33803379

3381-
static_assert(^^x != ^^y); // OK, \tcode{x} and \tcode{y} are different variables so their
3382-
// reflections compare different
3383-
static_assert(constant_of(^^x) == constant_of(^^y)); // OK, both \tcode{constant_of(x)} and
3384-
// \tcode{constant_of(\reflexpr{y})}
3385-
// represent the value \tcode{0}
3386-
static_assert(constant_of(^^x) == reflect_constant(0)); // OK, likewise
3380+
static_assert(^^x != ^^y); // OK, \tcode{x} and \tcode{y} are different variables,
3381+
// so their reflections compare different
3382+
static_assert(constant_of(^^x) ==
3383+
constant_of(^^y)); // OK, both \tcode{constant_of(x)} and
3384+
// \tcode{constant_of(\reflexpr{y})} represent the value \tcode{0}
3385+
static_assert(constant_of(^^x) ==
3386+
reflect_constant(0)); // OK, likewise
33873387

33883388
struct S { int m; };
33893389
constexpr S s {42};
33903390
static_assert(is_object(constant_of(^^s)) &&
33913391
is_object(reflect_object(s)));
3392-
static_assert(constant_of(^^s) != reflect_object(s)); // OK, template parameter object that is
3393-
// template-argument-equivalent to \tcode{s} is
3394-
// a different object than \tcode{s}
3392+
static_assert(constant_of(^^s) != // OK, template parameter object that is template-argument-
3393+
reflect_object(s)); // equivalent to \tcode{s} is a different object than \tcode{s}
33953394
static_assert(constant_of(^^s) ==
3396-
constant_of(reflect_object(s))); // OK
3395+
constant_of(reflect_object(s))); // OK
33973396

33983397
consteval info fn() {
33993398
constexpr int x = 42;
34003399
return ^^x;
34013400
}
3402-
constexpr info r = constant_of(fn()); // error: \tcode{x} is outside its lifetime
3401+
constexpr info r = constant_of(fn()); // error: \tcode{x} is outside its lifetime
34033402
\end{codeblock}
34043403
\end{example}
34053404
\end{itemdescr}
@@ -4161,7 +4160,7 @@
41614160
\end{itemize}
41624161
\begin{example}
41634162
\begin{codeblock}
4164-
template<class T, class U=T> struct Pair { };
4163+
template<class T, class U = T> struct Pair { };
41654164
template<class T> struct Pair<char, T> { };
41664165
template<class T> using PairPtr = Pair<T*>;
41674166

0 commit comments

Comments
 (0)