Skip to content

Commit

Permalink
Use boost::movelib::unique_ptr instead of std::unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
filoozom committed Dec 27, 2017
1 parent cde6d00 commit 51a8ab8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/move/unique_ptr.hpp>

using namespace std;
using namespace boost;
Expand Down Expand Up @@ -4666,7 +4667,7 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake)
CReserveKey reservekey(pwallet);

// Create new block
unique_ptr<CBlock> pblock(new CBlock());
movelib::unique_ptr<CBlock> pblock(new CBlock());
if (!pblock.get())
return NULL;

Expand Down Expand Up @@ -5128,7 +5129,7 @@ void MagiMiner(CWallet *pwallet, bool fProofOfStake)
unsigned int nTransactionsUpdatedLast = nTransactionsUpdated;
CBlockIndex* pindexPrev = pindexBest;

unique_ptr<CBlock> pblock(CreateNewBlock(pwallet, fProofOfStake));
movelib::unique_ptr<CBlock> pblock(CreateNewBlock(pwallet, fProofOfStake));
if (!pblock.get())
return;
IncrementExtraNonce(pblock.get(), pindexPrev, nExtraNonce);
Expand Down

0 comments on commit 51a8ab8

Please sign in to comment.