AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.33k stars 479 forks source link

auto_ptr is deprecated #85

Closed ioquatix closed 7 years ago

ioquatix commented 8 years ago
In file included from crypto-openssl.cpp:31:0:
crypto.hpp:60:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  std::auto_ptr<Aes_impl> impl;
       ^~~~~~~~
In file included from /usr/include/c++/6.1.1/memory:81:0,
                 from crypto.hpp:39,
                 from crypto-openssl.cpp:31:
/usr/include/c++/6.1.1/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from crypto-openssl.cpp:31:0:
crypto.hpp:105:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  std::auto_ptr<Hmac_impl> impl;
       ^~~~~~~~
In file included from /usr/include/c++/6.1.1/memory:81:0,
                 from crypto.hpp:39,
                 from crypto-openssl.cpp:31:
/usr/include/c++/6.1.1/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~

It looks like you could probably just replace it with std::unique_ptr?

mjrider commented 7 years ago

looks it could be fixed by pr #112

AGWA commented 7 years ago

This has been fixed.

ioquatix commented 7 years ago

Awesome thanks for your effort!