
27 May
2011
27 May
'11
1:10 p.m.
Am 27.05.2011 08:43, schrieb Max Sobolev:
On 27.05.2011 0:31, Sergiu Dotenco wrote:
Obviously, templates are not instantiated in the destructor, are they?
In the class template instantiation process only class is instantiated (without mem-funs). Mem-funs are instantiated in the call point, if any. In a non-inline ~Foo() (where ~data() is called) /struct data/ is complete type.
Explicit (full) instantiation is provided by syntax like:
template class std::auto_ptr<data>;
I'm not sure what your point is. Or is this just a comment?