
Message du 15/04/11 20:59 De : "Jeffrey Lee Hellrung, Jr." A : boost@lists.boost.org Copie à : Objet : Re: [boost] [locale] localization_backend_manager interface issue
On Fri, Apr 15, 2011 at 11:52 AM, Artyom 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...
There is already a unique_ptr implementation in Boost.Interprocess. Best, Vicente