You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2015/12/03 19:45:11 UTC
[jira] [Created] (TS-4052) auto_ptr is deprecated and should not be
used in our code
Leif Hedstrom created TS-4052:
---------------------------------
Summary: auto_ptr is deprecated and should not be used in our code
Key: TS-4052
URL: https://issues.apache.org/jira/browse/TS-4052
Project: Traffic Server
Issue Type: Bug
Components: Plugins
Reporter: Leif Hedstrom
I get the following build warnings:
{code}
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;
{code}
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)