Boost logo

Boost :

From: Daniel Frey (d.frey_at_[hidden])
Date: 2008-04-09 14:42:07


On Wed, 2008-04-09 at 14:16 -0400, Frank Mori Hess wrote:
> Here you go, this throws against the old library. It doesn't against the
> trunk, due to a slight change in behavior, but could easily be modified to do
> so.

Wow. Impressive.

I haven't found the part of the documentation which makes your example
illegal, but my gut feeling is that it should be illegal :)

Is there really no rule in the documentation which states that one
object should not - at any point in time - be owned by two shared_ptr's
that don't share ownership?

Regards, Daniel


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