Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] shared_ptr::before(), owner_less, etc.
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2008-12-19 15:48:42


On Fri, Dec 19, 2008 at 12:45 PM, Frank Mori Hess <frank.hess_at_[hidden]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 18 December 2008 20:58 pm, Frank Mori Hess wrote:
>> If I provide a patch that adds support for before() methods to
>> boost::shared_ptr and weak_ptr, and a boost::owner_less (as described in
>> n2637) would it be considered? I don't plan to change the semantics of
>> boost::shared_ptr::operator<(), I just want to make it slightly easier to
>> write code that will be portable across boost::shared_ptr and the upcoming
>> std::shared_ptr.
>
> 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?

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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