5 Dec
2008
5 Dec
'08
2:39 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 04 December 2008 19:42 pm, Jason Cipriani wrote:
Thanks for the tip. In this case, function needs to take a shared_ptr as it is used in other contexts with shared_ptr's, it's only sometimes used with objects from the stack.
There is always shared_ptr::get() and shared_ptr::operator*() to pass shared_ptr-owned objects to functions taking raw pointers/references. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJOT005vihyNWuA4URAmunAJ9OFXY2p7OK1IbqvPE/qvTXVFF7JACbBHA+ 02Q+b0bQU3Fxe6fsRvkclX8= =I0a3 -----END PGP SIGNATURE-----