
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 09 April 2008 11:13 am, Daniel Frey wrote:
I have use cases which would be a lot easier to implement if shared_from_this() never throws. And - at least with the "old" implementation - I don't see any reason why this guarantee should not hold. Of course it's not a defect, but to me it seems desirable.
It is technically possible to make it throw without violating the functions documented requirements, if there are multiple owners. For example, if pass the raw pointer to multiple shared_ptrs with null deleters. - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH/QEx5vihyNWuA4URAucBAJwNnXN2182FzKZXbn8GS9L6Wm7c5ACgjM5q L2Y5wjzIaZrOvrwNQ8oQvls= =j6mg -----END PGP SIGNATURE-----