[Bug c++/14317] Template functions linking problem
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Fri Feb 27 12:38:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-02-27 12:38 -------
This is how the template inclusion model works, and it's what 99% of the
compilers implement. There is also another separation model (using
keyword 'export') which allows to keep the template implementation in a
different file. Only one compiler on earth implements it right now, and there
are ongoing discussions about its usefulness (the compiler can't "precompile"
the template in any way, so it needs to "remember" its definition somehow, and
maybe even reparse the implementation file later while compiling another file
causing instantiation).
In short, I suggest you live with this for now. This is how everybody does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14317
More information about the Gcc-bugs
mailing list