seer icon indicating copy to clipboard operation
seer copied to clipboard

Lots of warnings about std::auto_ptr

Open tseemann opened this issue 8 years ago • 1 comments

This may not be critical but happens a lot with C++ builds:

../dlib/dlib/matrix/../smart_pointers/shared_ptr.h:299:18: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
             std::auto_ptr<Y>& r
                  ^
In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0/include/c++/5.3.0/memory:81:0,
                 from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0/include/c++/5.3.0/thread:40,
                 from seercommon.hpp:20,
                 from linkFunction.hpp:6,
                 from logitFunction.cpp:8:
/home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0/include/c++/5.3.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;

tseemann avatar Jul 01 '17 02:07 tseemann

I don't get this on gcc-4.9 (presume it became deprecated from gcc-5 onwards), but will fix this if I ever move to c++14

johnlees avatar Jul 01 '17 09:07 johnlees