Skip to content

Commit 607cb45

Browse files
committed
Turn declarations into definitions in the example
1 parent 9876cbb commit 607cb45

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/templates.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,16 @@
151151
so all specializations of a template belong to the same scope as it does.
152152
\begin{example}
153153
\begin{codeblock}
154-
void f();
155-
class f; // OK
154+
void f() {}
155+
class f {} // OK
156156
namespace N {
157-
void f(int);
157+
void f(int) {}
158158
}
159-
using N::f; // OK
160-
template<typename> void f(long); // OK
161-
template<typename> void f(long); // error: corresponding overload
162-
template<typename> void f(long long); // OK
163-
template<> void f<int>(long long); // OK, doesn't bind a name
159+
using N::f; // OK
160+
template<typename> void f(long) {} // OK
161+
template<typename> void f(long) {} // error: corresponding overload
162+
template<typename> void f(long long) {} // OK
163+
template<> void f<int>(long long) {} // OK, doesn't bind a name
164164
\end{codeblock}
165165
\end{example}
166166
\end{note}

0 commit comments

Comments
 (0)