Code: Select all
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::block_downloading_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::unwanted_block_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::storage_moved_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::storage_moved_failed_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::torrent_deleted_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::torrent_delete_failed_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::save_resume_data_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::save_resume_data_failed_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::torrent_paused_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::torrent_resumed_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::torrent_checked_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: In member function ‘virtual std::auto_ptr<libtorrent::alert> libtorrent::url_seed_alert::clone() const’:
../include/libtorrent/alert_types.hpp:118:16: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
{ return std::auto_ptr<alert>(new name(*this)); } \
^
../include/libtorrent/alert_types.hpp:118:16: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
{ return std::auto_ptr<alert>(new name(*this)); } \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from peer_connection.cpp:47:0:
../include/libtorrent/alert_types.hpp: At global scope:
../include/libtorrent/alert_types.hpp:117:15: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
../include/libtorrent/alert_types.hpp:117:15: note: in definition of macro ‘TORRENT_DEFINE_ALERT’
virtual std::auto_ptr<alert> clone() const \
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/get_pointer.hpp:14,
from /usr/include/boost/bind/mem_fn.hpp:25,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from peer_connection.cpp:35:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~