[
https://issues.apache.org/jira/browse/MESOS-3799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15005506#comment-15005506
]
Neil Conway commented on MESOS-3799:
------------------------------------
Hmmm, interesting idea!
Turns out that BOOST_NO_AUTO_PTR doesn't really work either, because there are
various parts of Boost that reference auto_ptr that aren't enclosed in a
"#ifndef BOOST_NO_AUTO_PTR" block.
I'll try using "-isystem" -- that would also let us avoid the
"-Wno-unused-local-typedef" hack.
> Compilation warning with Ubuntu wily: auto_ptr is deprecated
> ------------------------------------------------------------
>
> Key: MESOS-3799
> URL: https://issues.apache.org/jira/browse/MESOS-3799
> Project: Mesos
> Issue Type: Bug
> Reporter: Neil Conway
> Priority: Minor
> Labels: mesosphere
>
> Variants of this message are printed many times during compilation (Wily on
> AMD64):
> {noformat}
> CXX libprocess_la-pid.lo
> CXX libprocess_la-poll_socket.lo
> CXX libprocess_la-profiler.lo
> In file included from
> /mesos/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp:23:0,
> from
> /mesos/3rdparty/libprocess/3rdparty/stout/include/stout/stringify.hpp:26,
> from
> /mesos/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp:59,
> from
> /mesos/3rdparty/libprocess/include/process/address.hpp:34,
> from /mesos/3rdparty/libprocess/include/process/pid.hpp:26,
> from /mesos/3rdparty/libprocess/src/pid.cpp:28:
> 3rdparty/boost-1.53.0/boost/get_pointer.hpp:27:40: warning: ‘template<class>
> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
> template<class T> T * get_pointer(std::auto_ptr<T> const& p)
> ^
> In file included from /usr/include/c++/5/memory:81:0,
> from
> 3rdparty/boost-1.53.0/boost/functional/hash/extensions.hpp:32,
> from
> 3rdparty/boost-1.53.0/boost/functional/hash/hash.hpp:529,
> from 3rdparty/boost-1.53.0/boost/functional/hash.hpp:6,
> from /mesos/3rdparty/libprocess/include/process/pid.hpp:24,
> from /mesos/3rdparty/libprocess/src/pid.cpp:28:
> /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)