|
Boost : |
Subject: Re: [boost] [shared_ptr] delete shared_ptr
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2011-03-17 14:26:02
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, March 17, 2011, pavel wrote:
> and at last can you please give a couple of reasons why delete'ing
> smart pointers is a bad idea?
It violates the fundamental premise of shared_ptr: shared ownership.
Whoever deletes the object directly is taking total ownership of the object.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk2CUjsACgkQ5vihyNWuA4UZswCfWkCMXcVU/CdQ8/JKWtNerZFr
4eYAoMquMISHXZGgdgEdpxCfZ3Wf3wkn
=LjH1
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk