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 28572857static_assert(alias::s == 2);
28582858
28592859auto 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>}
28612861
28622862consteval int bad_splice(std::meta::info v) {
2863- return [:v:]; // error: v is not constant
2863+ return [:v:]; // error: \tcode {v} is not constant
28642864}
28652865\end {codeblock }
28662866\end {example }
56305630
56315631constexpr auto ctx = std::meta::access_context::current();
56325632
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
56355635constexpr auto r3 = ^^arr; // represents a variable
56365636constexpr auto r4 = ^^a3; // represents a structured binding
56375637constexpr auto r5 = ^^fn; // represents a function
You can’t perform that action at this time.
0 commit comments