File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 60676067 auto fn1();
60686068
60696069static_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
60736073template<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 }
You can’t perform that action at this time.
0 commit comments