Boost logo

Boost :

From: Martin Bonner (martin.bonner_at_[hidden])
Date: 2005-10-27 03:00:26

----Original Message----
From: Victor A. Wagner Jr. [mailto:vawjr_at_[hidden]]
Sent: 27 October 2005 03:55
To: boost_at_[hidden]; boost_at_[hidden]
Subject: Re: [boost] Is there any interest in a library that provides
containers with virtual destructors?

> [deleted]
>>>> are you suggesting that if it were class people: public
>>>> std::vector<person> {.....}; as above the same would be true?
>>>> not "in practice", "in theory".
>>> Absolutely. See 5.3.5/1 of the standard where this is explicitly
>>> called out as undefined behaviour.
> 5.3.5/1 looks like this in my copy of the standard
> perhaps some other paragraph? this doesn't address anything about
> derived objects.

D'oh! As others have pointed out, I meant 5.3.5/3. Sorry about that :-(

Martin Bonner
Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ,
ENGLAND Tel: +44 (0)1223 441434

Boost list run by bdawes at, gregod at, cpdaniel at, john at