Skip to content

Commit 96fa310

Browse files
authored
[meta.reflection.substitute] Name correct function in comments (#8372)
1 parent 2f53f31 commit 96fa310

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/meta.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6067,16 +6067,16 @@
60676067
auto fn1();
60686068

60696069
static_assert(!can_substitute(^^fn1, {^^int})); // OK
6070-
constexpr info r1 = substitute(^^fn1, {^^int}); // error: \tcode{fn<int>} contains an undeduced
6070+
constexpr info r1 = substitute(^^fn1, {^^int}); // error: \tcode{fn1<int>} contains an undeduced
60716071
// placeholder type for its return type
60726072

60736073
template<class T>
60746074
auto fn2() {
6075-
static_assert(^^T != ^^int); // static assertion failed during instantiation of \tcode{fn<int>}
6075+
static_assert(^^T != ^^int); // static assertion failed during instantiation of \tcode{fn2<int>}
60766076
return 0;
60776077
}
60786078

6079-
constexpr bool r2 = can_substitute(^^fn2, {^^int}); // error: instantiation of body of \tcode{fn<int>}
6079+
constexpr bool r2 = can_substitute(^^fn2, {^^int}); // error: instantiation of body of \tcode{fn2<int>}
60806080
// is needed to deduce return type
60816081
\end{codeblock}
60826082
\end{example}

0 commit comments

Comments
 (0)