Mail Archives: djgpp/2000/04/07/12:00:07
Hello
just have rather simple question...
in terms of templates:
since those are ADT - i presumed previously that compile cannot compile
template code into a single obj.
rather every instaniation of template class will get compiled as a part
of whatever cpp file that included it and used it.
Would like more info on how the compilation is handled.
also about inline methods - if one declares a method inline - how does
the compiler know - where to get source code from (since usually the
client of a class only includes header files and it is possible to
define inline method in source files).
Would then the linker try and introduce source code to objects when
linking or what?
With best regards - Leon.
- Raw text -