This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: is #pragma interface still needed ?
> > and now does a little more, as well (controlling generation of template
> > instantiations).
>
> No.
No, it does not more than originally, or no, it does not control
generation of template instantiations?
If the latter, is then the documentation (Node: Template
Instantiation) correct, which says
4. Add `#pragma interface' to all files containing template
definitions. For each of these files, add `#pragma implementation
"FILENAME"' to the top of some `.C' file which `#include's it.
Then compile everything with `-fexternal-templates'.
(I know that -fexternal-templates is deprecated...)
Martin