Fix deprecation warnings about std::auto_ptramule-svn-r11020
commita67d989c36c70dad5646330080ae1b8b2c52b3f1
authorupstream svn <svn@amule.org>
Mon, 5 Aug 2019 16:35:47 +0000 (5 16:35 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Sun, 18 Aug 2019 14:24:06 +0000 (18 14:24 +0000)
tree8186871510070627b49c371ec71482f9952298ea
parentdfe8629dba1fdb869c69532b1617603bc3e947ea
Fix deprecation warnings about std::auto_ptr

std::auto_ptr is deprecated in C++11 and removed in C++17. std::unique_ptr
is an almost drop-in replacement for std::auto_ptr introduced in C++11
(with proper move operators).

To find out more about the background of removing std::auto_ptr and introducing std::unique_ptr,
see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html#20.4.5%20-%20Class%20template%20auto_ptr
12 files changed:
.svn-revision
src/SearchList.cpp
src/SearchList.h
src/UPnPBase.cpp
src/UPnPBase.h
src/libs/common/FileFunctions.cpp
src/libs/common/Makefile.am
src/libs/common/Makefile.in
src/libs/common/SmartPtr.h [new file with mode: 0644]
src/libs/ec/cpp/ECSocket.cpp
src/libs/ec/cpp/ECSocket.h
src/libs/ec/cpp/RemoteConnect.cpp