[
https://issues.apache.org/jira/browse/THRIFT-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15146489#comment-15146489
]
ASF GitHub Bot commented on THRIFT-3622:
----------------------------------------
Github user nsuke commented on the pull request:
https://github.com/apache/thrift/pull/860#issuecomment-183872537
It seems that our Autools build does not use -isystem to include boost
(i.e. using -I), so I'm afraid that we cannot remove the warnings by using
scoped_ptr.
Because last time I checked, scoped_ptr was using auto_ptr inside their
code and there was no workaround.
But it would still remove them from CMake build.
> Fix deprecated uses of std::auto_ptr
> ------------------------------------
>
> Key: THRIFT-3622
> URL: https://issues.apache.org/jira/browse/THRIFT-3622
> Project: Thrift
> Issue Type: Task
> Components: C++ - Library
> Reporter: John Sirois
> Assignee: John Sirois
>
> We have some in lib/cpp, like so:
> {noformat}
> JSONProtoTest.cpp:35:13: warning: ‘template<class> class std::auto_ptr’ is
> deprecated [-Wdeprecated-declarations]
> static std::auto_ptr<OneOfEach> ooe;
> ^
> In file included from /usr/include/c++/5.3.0/bits/locale_conv.h:41:0,
> from /usr/include/c++/5.3.0/locale:43,
> from /usr/include/c++/5.3.0/iomanip:43,
> from JSONProtoTest.cpp:22:
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)