Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of warnings about std::auto_ptr #58

Open
tseemann opened this issue Jul 1, 2017 · 1 comment
Open

Lots of warnings about std::auto_ptr #58

tseemann opened this issue Jul 1, 2017 · 1 comment

Comments

@tseemann
Copy link

tseemann commented Jul 1, 2017

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
Copy link
Owner

johnlees commented Jul 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants