[smart_ptr] shared_ptr::before(), owner_less, etc.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJSv/f5vihyNWuA4URAuCbAKDQc5/ufv01thvyrLUScX2GpiXMZACgkzII +6c/b6ZJ9e5oee7O9DWxI6Q= =Ggbl -----END PGP SIGNATURE-----

-----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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJTAfU5vihyNWuA4URAgv7AJ0ZHl4OpEWwYoZ2HAyQ81VFpXb5IQCguD09 v+eOIynrEeJGE4zIauMpu6E= =ayBP -----END PGP SIGNATURE-----

On Fri, Dec 19, 2008 at 12:45 PM, Frank Mori Hess <frank.hess@nist.gov> 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

-----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@nist.gov> 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-----
participants (2)
-
Emil Dotchevski
-
Frank Mori Hess