Re[4]: [Dev-C++] templates and inheritance
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Astar <As...@tu...> - 2003-04-30 13:22:42
|
Hello Ioannis,
IV> The definitions of template functions and classes must be provided at every
IV> file you use them. If you wish to place the definition of the template in
IV> one implementation file, you have to use the keyword export. Example:
IV> export template<class T>
IV> class whatever
IV> {
IV> // ...
IV> };
may be i don't understand you...
i understand that if i have two files (.h/.cpp) i must dublicate
definition of template in .cpp file with word "extern". Am I right?
or i must dublicate definition of template in every file where i use
it?
thanx a lot....
IV> However its implementation is very tough, and not many compilers support the
IV> keyword "export".
--
Best regards,
Astar mailto:As...@tu...
|