
Thank you Sebastian and Mathias... Thank was very helpful and useful. Regards, -Sid Sacek -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Mathias Gaunard Sent: Monday, December 22, 2008 9:05 PM To: boost@lists.boost.org Subject: Re: [boost] [unique_ptr] So how is it used differently? Sid Sacek wrote:
1) When would I choose unique_ptr<> over auto_ptr<> ?
Always. auto_ptr is deprecated and is dangerous. unique_ptr, for example, perfectly works with containers.
2) When would I choose unique_ptr<> over scoped_ptr<> ?
Whenever you need the ability to move. You can choose to always use it instead of scoped_ptr, that's perfectly safe and doesn't add any overhead. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost