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:56:41 UTC
[jira] [Reopened] (THRIFT-3622) Fix deprecated uses of
std::auto_ptr
[ https://issues.apache.org/jira/browse/THRIFT-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King, III reopened THRIFT-3622:
----------------------------------------
Assignee: James E. King, III
Seen under MinGW with gcc 6.3.0 - if we don't correct these, it will ultimately cause compile errors when the deprcation becomes removal.
{noformat}
[ 87%] Building CXX object lib/cpp/test/CMakeFiles/JSONProtoTest.dir/JSONProtoTest.cpp.obj
C:\workspace\thrift\lib\cpp\test\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 C:/msys64/mingw64/include/c++/6.3.0/bits/locale_conv.h:41:0,
from C:/msys64/mingw64/include/c++/6.3.0/locale:43,
from C:/msys64/mingw64/include/c++/6.3.0/iomanip:43,
from C:\workspace\thrift\lib\cpp\test\JSONProtoTest.cpp:22:
C:/msys64/mingw64/include/c++/6.3.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
C:\workspace\thrift\lib\cpp\test\JSONProtoTest.cpp:68:13: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
static std::auto_ptr<Nesting> n;
^~~~~~~~
In file included from C:/msys64/mingw64/include/c++/6.3.0/bits/locale_conv.h:41:0,
from C:/msys64/mingw64/include/c++/6.3.0/locale:43,
from C:/msys64/mingw64/include/c++/6.3.0/iomanip:43,
from C:\workspace\thrift\lib\cpp\test\JSONProtoTest.cpp:22:
C:/msys64/mingw64/include/c++/6.3.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
C:\workspace\thrift\lib\cpp\test\JSONProtoTest.cpp:108:13: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
static std::auto_ptr<HolyMoley> hm;
^~~~~~~~
In file included from C:/msys64/mingw64/include/c++/6.3.0/bits/locale_conv.h:41:0,
from C:/msys64/mingw64/include/c++/6.3.0/locale:43,
from C:/msys64/mingw64/include/c++/6.3.0/iomanip:43,
from C:\workspace\thrift\lib\cpp\test\JSONProtoTest.cpp:22:
C:/msys64/mingw64/include/c++/6.3.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
{noformat}
> 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)