"Gianni Mariani" <> wrote in message
news:kbqdneWFPa6-...
> sks wrote:
>> Hello all
>>
>> Is the usage of extern keyword valid for telling the compiler to NOT
>> instantiate a template and to link it from an another binary?
>
> Perhaps you're thinking of the "export" keyword ? Only once compiler I
> know of implements export.
What about the content of this link? Is it only true for DLLs?
> So, if I understand correctly, I could create a DLL that exported basic
> 32bit instantiations (eg. vector< void* >) of the STL containers, and then
> all my client modes could include code like:
> extern template class foo< int > ; any 32bit type
> and the linker would link the client modules to the appropriate code in
> the DLL.
Well, yes, if you aren't looking for anything special by calling out 32
bit types.
http://groups.google.com/group/comp....dad71f2f8239bc