Description
I get the following build warnings:
In file included from ats-multiplexer.cc:29:0: dispatch.h:54:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<ats::io::IO> io; ^ In file included from /opt/gcc5/include/c++/5.2.0/memory:81:0, from dispatch.h:27, from ats-multiplexer.cc:29: /opt/gcc5/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^ CXX chunk-decoder.lo CXX dispatch.lo In file included from dispatch.cc:26:0: dispatch.h:54:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<ats::io::IO> io; ^ In file included from /opt/gcc5/include/c++/5.2.0/memory:81:0, from dispatch.h:27, from dispatch.cc:26: /opt/gcc5/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^ CXX fetcher.lo CXX original-request.lo In file included from original-request.cc:25:0: dispatch.h:54:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<ats::io::IO> io; ^ In file included from /opt/gcc5/include/c++/5.2.0/memory:81:0, from dispatch.h:27, from original-request.cc:25: /opt/gcc5/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^ CXX post.lo In file included from post.h:28:0, from post.cc:26: dispatch.h:54:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<ats::io::IO> io; ^ In file included from /opt/gcc5/include/c++/5.2.0/memory:81:0, from dispatch.h:27, from post.h:28, from post.cc:26: /opt/gcc5/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr;
I'm not sure what's the best option here, but we've used ats_scoped_obj in plugins even though it's not a public API.