Commit 4003d7f9 by Jason Merrill

update explicit instantiation docs

From-SVN: r34264
parent d3a36404
...@@ -3840,12 +3840,16 @@ other files) without having to specify them as well. ...@@ -3840,12 +3840,16 @@ other files) without having to specify them as well.
g++ has extended the template instantiation syntax outlined in the g++ has extended the template instantiation syntax outlined in the
Working Paper to allow forward declaration of explicit instantiations Working Paper to allow forward declaration of explicit instantiations
and instantiation of the compiler support data for a template class (with @code{extern}), instantiation of the compiler support data for a
(i.e. the vtable) without instantiating any of its members: template class (i.e. the vtable) without instantiating any of its
members (with @code{inline}), and instantiation of only the static data
members of a template class, without the support data or member
functions (with (@code{static}):
@example @example
extern template int max (int, int); extern template int max (int, int);
inline template class Foo<int>; inline template class Foo<int>;
static template class Foo<int>;
@end example @end example
@item @item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment