
27 May
2011
27 May
'11
6:43 a.m.
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>;