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

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11622: std::auto_ptr is deprecated
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-29 00:44:12


#11622: std::auto_ptr is deprecated
-------------------------------+-----------------------
  Reporter: anonymous | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: smart_ptr
   Version: Boost 1.59.0 | Severity: Cosmetic
Resolution: | Keywords:
-------------------------------+-----------------------
Changes (by jack@…):

 * cc: jack@… (added)

Comment:

 Compiling Zcash with `-Werror` using Boost 1.62.0 (which includes the
 above fix), I still get this error:

 {{{
 In file included from /home/str4d/dev/zcash/zcash/depends/x86_64-unknown-
 linux-
 gnu/include/boost/spirit/home/classic/core/non_terminal/grammar.hpp:21:0,
                  from /home/str4d/dev/zcash/zcash/depends/x86_64-unknown-
 linux-gnu/include/boost/spirit/home/classic/core.hpp:42,
                  from /home/str4d/dev/zcash/zcash/depends/x86_64-unknown-
 linux-gnu/include/boost/spirit/include/classic_core.hpp:11,
                  from json/json_spirit_reader_template.h:19,
                  from asyncrpcoperation.h:20,
                  from asyncrpcqueue.h:8,
                  from asyncrpcqueue.cpp:5:
 /home/str4d/dev/zcash/zcash/depends/x86_64-unknown-linux-
 gnu/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp:
 In member function ‘boost::spirit::classic::impl::grammar_helper<GrammarT,
 DerivedT, ScannerT>::definition_t&
 boost::spirit::classic::impl::grammar_helper<GrammarT, DerivedT,
 ScannerT>::define(const grammar_t*)’:
 /home/str4d/dev/zcash/zcash/depends/x86_64-unknown-linux-
 gnu/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp:159:18:
 error: ‘template<class> class std::auto_ptr’ is deprecated [-Werror
 =deprecated-declarations]
              std::auto_ptr<definition_t>
                   ^
 In file included from /usr/include/c++/5/memory:81:0,
                  from asyncrpcoperation.h:13,
                  from asyncrpcqueue.h:8,
                  from asyncrpcqueue.cpp:5:
 /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
    template<typename> class auto_ptr;
                             ^
 }}}

 It seems that the fix applied to the smart pointers library needs to be
 expanded to all libraries that use `auto_ptr`.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11622#comment:4>
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:20 UTC