Ali Çehreli wrote:
> Jérôme M. Berger wrote:
>>     Throwing exception inside constructors should be avoided because
>> then the destructor is never called and you risk leaking like crazy.
> 
> That's necessarily so, because calling the destructor on the incomplete
> object might cause other troubles.
> 
> On the other hand, the destructors of all of the constructed members are
> called when the encapsulating object's constructor throws.
> 
        Does that include the parent destructor?

                Jerome
-- 
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to