
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 19 March 2008 17:41 pm, Peter Dimov wrote:
Your _v3 patch looks pretty good. deleter_wrapper should probably be sp_deleter_wrapper. What is the purpose of owned()?
It indicates whether the object has had ownership passed to a shared_ptr yet. I don't have a strong justification on why it needs to be public, maybe it would be useful for debugging/diagnostic purposes. Internally, it's needed to figure out if the lazy initialization of _internal_shared_this has been performed yet, although it could be replaced by something that more directly serves that purpose. Attached is a test for the new functionality. - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH4n6d5vihyNWuA4URArUcAKDfpaUBKcfbyNU4pbu1P2IjDdbBGQCfZsHx TYToCExKCckLEX6sKcgF6eo= =YoeM -----END PGP SIGNATURE-----