Skip to content

Commit 7ef089c

Browse files
committed
Add an example of a corresponding overload
1 parent 4e1f6a6 commit 7ef089c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/templates.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
}
161161
using N::f; // OK
162162
template<typename> void f(long); // OK
163+
template<typename> void f(long); // error: corresponding overload
163164
template<typename> void f(long long); // OK
164165
template<> void f<int>(long long); // OK, doesn't bind a name
165166
\end{codeblock}

0 commit comments

Comments
 (0)