
15 Apr
2011
15 Apr
'11
6:58 p.m.
On Fri, Apr 15, 2011 at 11:52 AM, Artyom <artyomtnk@yahoo.com> wrote:
std::auto_ptr is deprecated in C++0x. Just for note.
-- Ryou Ezoe
I'm aware of it even thou I'm really not happy with it.
In any case auto_ptr is the only pointer with move ownership semantics in C++03 and Boost, so meanwhile it is the only valid solution that has clear ownership semantics.
One alternative to using std::auto_ptr is the unique_ptr implementation found in sandbox/unique_ptr (by Hinnant & Gatzanaga)...you can copy the source to a detail namespace in your library until we have a portable boost::unique_ptr... Just a suggestion, - Jeff