Boost logo

Boost :

Subject: Re: [boost] [pimpl] Mini Review
From: Max Sobolev (macsmr_at_[hidden])
Date: 2011-05-27 02:43:05


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>;


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk