Andreas Tille <andr...@an3as.eu> wrote: > Hi, > > I started packaging centrifuge[1] and hit a build error which > is most probably caused by gcc-7 incompatibility: > > ... > In file included from centrifuge_build.cpp:27:0: > bt2_idx.h: In static member function 'static std::pair<Ebwt<index_t>*, > Ebwt<index_t>*> Ebwt<index_t>::fromStrings(const > EList<std::__cxx11::basic_string<char> >&, bool, int, int, bool, int32_t, > int32_t, int32_t, const string&, bool, index_t, index_t, index_t, int, > uint32_t, bool, bool, bool)': > bt2_idx.h:1053:3: warning: 'template<class> class std::auto_ptr' is > deprecated [-Wdeprecated-declarations]
This is only a warning, so you can ignore it. If you are feeling ambitious, the recommended fix is to replace all auto_ptr's with unique_ptr's and copies with moves(). Apparently, clang-modernize can do this automatically. Walter Landry