mirror of
https://github.com/monero-project/monero.git
synced 2025-12-30 22:50:54 -08:00
replace std::auto_ptr with std::unique_ptr
The former is obsolete
This commit is contained in:
@@ -228,7 +228,7 @@ void wallet2::process_new_transaction(const cryptonote::transaction& tx, uint64_
|
||||
// process the other outs from that tx
|
||||
boost::asio::io_service ioservice;
|
||||
boost::thread_group threadpool;
|
||||
std::auto_ptr < boost::asio::io_service::work > work(new boost::asio::io_service::work(ioservice));
|
||||
std::unique_ptr < boost::asio::io_service::work > work(new boost::asio::io_service::work(ioservice));
|
||||
for (int i = 0; i < threads; i++)
|
||||
{
|
||||
threadpool.create_thread(boost::bind(&boost::asio::io_service::run, &ioservice));
|
||||
@@ -264,7 +264,7 @@ void wallet2::process_new_transaction(const cryptonote::transaction& tx, uint64_
|
||||
{
|
||||
boost::asio::io_service ioservice;
|
||||
boost::thread_group threadpool;
|
||||
std::auto_ptr < boost::asio::io_service::work > work(new boost::asio::io_service::work(ioservice));
|
||||
std::unique_ptr < boost::asio::io_service::work > work(new boost::asio::io_service::work(ioservice));
|
||||
for (int i = 0; i < threads; i++)
|
||||
{
|
||||
threadpool.create_thread(boost::bind(&boost::asio::io_service::run, &ioservice));
|
||||
|
||||
Reference in New Issue
Block a user