GZR0 / GRZ0

GRAVITY Z. COIN
https://gzro.net/
MIT License
9 stars 8 forks source link

warning: ‘template<class> class std::auto_ptr’ is deprecated #6

Open kkoenen opened 5 years ago

kkoenen commented 5 years ago

While building wallet;

miner.cpp: In function ‘CBlock* CreateNewBlock(CWallet*, bool, int64_t*)’:
miner.cpp:116:5: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    auto_ptr<CBlock> pblock(new CBlock());
    ^~~~~~~~

Although it doesn't seem to be a critical error, I'm going to go ahead and leave it here ;)

kkoenen commented 5 years ago

In file included from /usr/include/c++/7/memory:80:0, from /usr/include/boost/config/no_tr1/memory.hpp:21, from /usr/include/boost/smart_ptr/shared_ptr.hpp:23, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/date_time/time_clock.hpp:17, from /usr/include/boost/thread/thread_time.hpp:9, from /usr/include/boost/thread/lock_types.hpp:18, from /usr/include/boost/thread/pthread/mutex.hpp:16, from /usr/include/boost/thread/mutex.hpp:16, from src/allocators.h:10, from src/serialize.h:22, from src/bignum.h:9, from src/main.h:12, from src/txdb-leveldb.h:9, from src/txdb.h:9, from src/miner.cpp:10: /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr;