From 4337b4328ebd93c4a98c78867c60037b41656898 Mon Sep 17 00:00:00 2001 From: Kilian Henneberger Date: Mon, 27 Oct 2025 15:01:23 +0100 Subject: [PATCH] [meta.reflection.substitute] Name correct function in comments --- source/meta.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/meta.tex b/source/meta.tex index 6eda20871a..2a049e3fd5 100644 --- a/source/meta.tex +++ b/source/meta.tex @@ -6067,16 +6067,16 @@ auto fn1(); static_assert(!can_substitute(^^fn1, {^^int})); // OK -constexpr info r1 = substitute(^^fn1, {^^int}); // error: \tcode{fn} contains an undeduced +constexpr info r1 = substitute(^^fn1, {^^int}); // error: \tcode{fn1} contains an undeduced // placeholder type for its return type template auto fn2() { - static_assert(^^T != ^^int); // static assertion failed during instantiation of \tcode{fn} + static_assert(^^T != ^^int); // static assertion failed during instantiation of \tcode{fn2} return 0; } -constexpr bool r2 = can_substitute(^^fn2, {^^int}); // error: instantiation of body of \tcode{fn} +constexpr bool r2 = can_substitute(^^fn2, {^^int}); // error: instantiation of body of \tcode{fn2} // is needed to deduce return type \end{codeblock} \end{example}