You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2017/02/09 13:59:41 UTC

[jira] [Commented] (THRIFT-3622) Fix deprecated uses of std::auto_ptr

    [ https://issues.apache.org/jira/browse/THRIFT-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859551#comment-15859551 ] 

James E. King, III commented on THRIFT-3622:
--------------------------------------------

The easiest fix is to modify the code to include {{<boost/scoped_ptr.hpp>}} and use a {{boost::scoped_ptr}} in place of a {{std::auto_ptr}}.
This matches the rest of our current code.

> 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: James E. King, III
>
> 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.15#6346)