Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] shared_ptr::before(), owner_less, etc.
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-12-21 21:00:06


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 19 December 2008 15:48 pm, Emil Dotchevski wrote:
> On Fri, Dec 19, 2008 at 12:45 PM, Frank Mori Hess <frank.hess_at_[hidden]>
wrote:
> >
> > I went ahead and implemented the owner_less stuff, patches in trac:
> >
> > https://svn.boost.org/trac/boost/ticket/2603
> >
> > If the changes are acceptable, I could also make the corresponding
> > changes to the smart_ptr docs.
>
> Can this be implemented non-intrusively (without changes to
> boost::shared_ptr), even if the interface differs from N2637?

The owner_less class could be, but I don't see any reason not to add the
owner_before() methods to shared_ptr and weak_ptr. It won't break any
existing code, and makes boost::shared_ptr more compatible with
std::shared_ptr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJTvSr5vihyNWuA4URAvaTAJ0UPdnA0mTiIcB1BSVJCGaQ2jhxdQCg3pp5
7fiuUjdzM5Ecz7vYhUyK9rg=
=3Fnp
-----END PGP SIGNATURE-----


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