Boost logo

Boost :

Subject: Re: [boost] [pimpl] Mini Review
From: Sergiu Dotenco (sergiu.dotenco_at_[hidden])
Date: 2011-05-27 09:10:50


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?


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