On 2015-11-10 15:51, Artyom Beilis wrote:
On 2015-11-09 18:52, Marshall Clow wrote:
[snip] I'm seeing lots of warnings about use of deprecated std::auto_ptr in >different libraries: Boost.DateTime, Boost.Locale, Boost.Signals. I've attached the list of places where these warnings occur. [snip]
See... unlike Boost, most of the ordinary world still uses C++2003 and will use it for a long time especially for existing projects.
Existing libraries like Boost.Locale support C++2003.
std::auto_ptr is perfect way to provide ownership move semantics without rvalue reference despite the fact some may abuse it.
I wouldn't call it perfect. In the lack of rvalue references I would have preferred an explicit method to return a proxy that acts like rvalue reference. But that's offtopic. Would you consider porting Boost.Locale to boost::movelib::unique_ptr from Boost.Move? Note that you will have to switch at some point as MSVC developers are planning to remove auto_ptr from the standard library at some point.