File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2857
2857
static_assert(alias::s == 2);
2858
2858
2859
2859
auto o1 = [:^^TCls:]<([:^^v:])>(); // error: < means less than
2860
- auto o2 = typename [:^^TCls:]<([:^^v:])>(); // OK, o2 is an object of type TCls<1>
2860
+ auto o2 = typename [:^^TCls:]<([:^^v:])>(); // OK, \tcode {o2} is an object of type \tcode { TCls<1>}
2861
2861
2862
2862
consteval int bad_splice(std::meta::info v) {
2863
- return [:v:]; // error: v is not constant
2863
+ return [:v:]; // error: \tcode {v} is not constant
2864
2864
}
2865
2865
\end {codeblock }
2866
2866
\end {example }
5630
5630
5631
5631
constexpr auto ctx = std::meta::access_context::current();
5632
5632
5633
- constexpr auto r1 = std::meta::reflect_constant(42); // represents int value of 42
5634
- constexpr auto r2 = std::meta::reflect_object(arr[1]); // represents int object
5633
+ constexpr auto r1 = std::meta::reflect_constant(42); // represents \tcode { int} value of \tcode {42}
5634
+ constexpr auto r2 = std::meta::reflect_object(arr[1]); // represents \tcode { int} object
5635
5635
constexpr auto r3 = ^^arr; // represents a variable
5636
5636
constexpr auto r4 = ^^a3; // represents a structured binding
5637
5637
constexpr auto r5 = ^^fn; // represents a function
You can’t perform that action at this time.
0 commit comments