[Boost-bugs] [Boost C++ Libraries] #11622: std::auto_ptr is deprecated

Subject: [Boost-bugs] [Boost C++ Libraries] #11622: std::auto_ptr is deprecated
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-07 09:10:26


#11622: std::auto_ptr is deprecated
------------------------------+----------------------
 Reporter: anonymous | Owner: fmhess
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: signals2
  Version: Boost 1.59.0 | Severity: Cosmetic
 Keywords: |
------------------------------+----------------------
 Hi,

 I'm using Boost 1.59 and compiling a signals2 program using
 a new compiler:
 gcc 5.2.1.


 My code is now littered with warnings!!
 warning: ‘template<class> class std::auto_ptr’ is deprecated

 and indeed: Checking it here
 http://en.cppreference.com/w/cpp/memory/auto_ptr
 I see: "deprecated since C++11"


 (Seems that std::unique_ptr is the favoured replacement.)

 Here's the output of an online compiler:
 http://melpon.org/wandbox/permlink/7QyVTXZ51MVonsgv

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11622>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC