Boost logo

Boost :

From: Thomas Maeder (maeder_at_[hidden])
Date: 2002-01-18 14:39:41

Am 2002.01.18 14:40 schrieb(en) Peter Dimov:
> The original example was:
> shared_ptr<Derived> d(new Derived);
> shared_ptr<Base> b(d);
> d.reset();
> b.reset();
> Which line invokes the undefined behavior? My answer is "none of them"
> and therefore I have implemented a version of shared_ptr that handles
> the
> example fine.

My answer is: The second one.

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