
9 Apr
2008
9 Apr
'08
6:42 p.m.
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