Boost Users :
Subject: Re: [Boost-users] shared_ptr and std::set::erase
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-10-09 11:42:45
-----BEGIN PGP SIGNED MESSAGE-----
On Thursday 09 October 2008 10:58 am, Bill Somerville wrote:
> The less than operator for shared_ptr compares the address of the
> pointee, not its value.
No, I believe it provides a partial weak ordering based on shared ownership.
It's possible for two shared_ptr that share ownership to point at different
addresses (via the aliasing constructor for example).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net