johnlees / seer

sequence element (kmer) enrichment analysis
GNU General Public License v2.0
43 stars 9 forks source link

Lots of warnings about std::auto_ptr #58

Open tseemann opened 7 years ago

tseemann commented 7 years ago

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;
johnlees commented 7 years ago

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