Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/meta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6067,16 +6067,16 @@
auto fn1();

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

template<class T>
auto fn2() {
static_assert(^^T != ^^int); // static assertion failed during instantiation of \tcode{fn<int>}
static_assert(^^T != ^^int); // static assertion failed during instantiation of \tcode{fn2<int>}
return 0;
}

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