Re: [boost] Is there any interest in a library that provides cont ainers with virtual destructors?

----Original Message---- From: Victor A. Wagner Jr. [mailto:vawjr@rudbek.com] Sent: 27 October 2005 03:55 To: boost@lists.boost.org; boost@lists.boost.org 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 [snip]
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 Martin.Bonner@Pitechnology.com Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 441434
participants (1)
-
Martin Bonner