[jira] [Updated] (TS-4052) auto_ptr is deprecated and should not be used in our code
[ https://issues.apache.org/jira/browse/TS-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leif Hedstrom updated TS-4052: -- Issue Type: Improvement (was: Bug) > 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: Improvement > Components: Plugins >Reporter: Leif Hedstrom >Assignee: Alan M. Carroll > Fix For: 6.1.0 > > > I get the following build warnings: > {code} > In file included from ats-multiplexer.cc:29:0: > dispatch.h:54:8: warning: 'template class std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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)
[jira] [Updated] (TS-4052) auto_ptr is deprecated and should not be used in our code
[ https://issues.apache.org/jira/browse/TS-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leif Hedstrom updated TS-4052: -- Fix Version/s: 6.1.0 > 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 > Fix For: 6.1.0 > > > I get the following build warnings: > {code} > In file included from ats-multiplexer.cc:29:0: > dispatch.h:54:8: warning: 'template class std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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)
[jira] [Updated] (TS-4052) auto_ptr is deprecated and should not be used in our code
[ https://issues.apache.org/jira/browse/TS-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leif Hedstrom updated TS-4052: -- Assignee: Alan M. Carroll > 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 >Assignee: Alan M. Carroll > Fix For: 6.1.0 > > > I get the following build warnings: > {code} > In file included from ats-multiplexer.cc:29:0: > dispatch.h:54:8: warning: 'template class std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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 std::auto_ptr' is deprecated > [-Wdeprecated-declarations] >std::auto_ptr 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 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)