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

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

Open
kkoenen opened this issue May 18, 2019 · 1 comment
Open

Comments

@kkoenen
Copy link
Collaborator

kkoenen commented May 18, 2019

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 kkoenen changed the title ‘template<class> class std::auto_ptr’ is deprecated warning: ‘template<class> class std::auto_ptr’ is deprecated May 18, 2019
@kkoenen
Copy link
Collaborator Author

kkoenen commented May 24, 2019

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;

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

No branches or pull requests

1 participant