When trying to template a class where the class
declaration is in a header file and the class
specification is in the source file, I receive linking
errors (Unresolved External Symbols... as if I have not
defined the methods). When I put everything in one file,
it all works beautifully... any suggestions on how to
remedy this problem?
THanks,
Jonathan Caves [MSFT] - 29 Aug 2003 02:04 GMT
>Content-Class: urn:content-classes:message
>From: "JL" <jltruitt@una.edu>
[quoted text clipped - 12 lines]
>
>THanks,
Hi JL: this is the way Visual C++ works: the Visual C++ compiler supports
what is
known as the "inclusion model" for templates: at its simplest this means
that the
full definition of a class template must be available in all compilands in
which
the class template is specialized.

Signature
Jonathan Caves, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.