Fix daemon compile errors
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <deque>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
|
||||||
#include <event2/event.h>
|
#include <event2/event.h>
|
||||||
|
|||||||
+12
-10
@@ -16,10 +16,10 @@
|
|||||||
#include "sync.h"
|
#include "sync.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <std::map>
|
#include <map>
|
||||||
#include <std::string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <std::vector>
|
#include <vector>
|
||||||
extern CCriticalSection cs_budget;
|
extern CCriticalSection cs_budget;
|
||||||
|
|
||||||
class CBudgetManager;
|
class CBudgetManager;
|
||||||
@@ -416,7 +416,7 @@ public:
|
|||||||
CFinalizedBudgetBroadcast(const CFinalizedBudget& other);
|
CFinalizedBudgetBroadcast(const CFinalizedBudget& other);
|
||||||
CFinalizedBudgetBroadcast(std::string strBudgetNameIn, int nBlockStartIn, std::vector<CTxBudgetPayment> vecBudgetPaymentsIn, uint256 nFeeTXHashIn);
|
CFinalizedBudgetBroadcast(std::string strBudgetNameIn, int nBlockStartIn, std::vector<CTxBudgetPayment> vecBudgetPaymentsIn, uint256 nFeeTXHashIn);
|
||||||
|
|
||||||
void std::swap(CFinalizedBudgetBroadcast& first, CFinalizedBudgetBroadcast& second) // nothrow
|
friend void swap(CFinalizedBudgetBroadcast& first, CFinalizedBudgetBroadcast& second) // nothrow
|
||||||
{
|
{
|
||||||
// enable ADL (not necessary in our case, but good practice)
|
// enable ADL (not necessary in our case, but good practice)
|
||||||
using std::swap;
|
using std::swap;
|
||||||
@@ -425,15 +425,16 @@ public:
|
|||||||
// the two classes are effectively swapped
|
// the two classes are effectively swapped
|
||||||
std::swap(first.strBudgetName, second.strBudgetName);
|
std::swap(first.strBudgetName, second.strBudgetName);
|
||||||
std::swap(first.nBlockStart, second.nBlockStart);
|
std::swap(first.nBlockStart, second.nBlockStart);
|
||||||
first.mapVotes.std::swap(second.mapVotes);
|
first.mapVotes.swap(second.mapVotes);
|
||||||
first.vecBudgetPayments.std::swap(second.vecBudgetPayments);
|
first.vecBudgetPayments.swap(second.vecBudgetPayments);
|
||||||
std::swap(first.nFeeTXHash, second.nFeeTXHash);
|
std::swap(first.nFeeTXHash, second.nFeeTXHash);
|
||||||
std::swap(first.nTime, second.nTime);
|
std::swap(first.nTime, second.nTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
CFinalizedBudgetBroadcast& operator=(CFinalizedBudgetBroadcast from)
|
CFinalizedBudgetBroadcast& operator=(CFinalizedBudgetBroadcast from)
|
||||||
{
|
{
|
||||||
std::swap(*this, from);
|
using std::swap;
|
||||||
|
swap(*this, from);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -562,7 +563,7 @@ public:
|
|||||||
CBudgetProposalBroadcast(const CBudgetProposalBroadcast& other) : CBudgetProposal(other) {}
|
CBudgetProposalBroadcast(const CBudgetProposalBroadcast& other) : CBudgetProposal(other) {}
|
||||||
CBudgetProposalBroadcast(std::string strProposalNameIn, std::string strURLIn, int nPaymentCount, CScript addressIn, CAmount nAmountIn, int nBlockStartIn, uint256 nFeeTXHashIn);
|
CBudgetProposalBroadcast(std::string strProposalNameIn, std::string strURLIn, int nPaymentCount, CScript addressIn, CAmount nAmountIn, int nBlockStartIn, uint256 nFeeTXHashIn);
|
||||||
|
|
||||||
void std::swap(CBudgetProposalBroadcast& first, CBudgetProposalBroadcast& second) // nothrow
|
friend void swap(CBudgetProposalBroadcast& first, CBudgetProposalBroadcast& second) // nothrow
|
||||||
{
|
{
|
||||||
// enable ADL (not necessary in our case, but good practice)
|
// enable ADL (not necessary in our case, but good practice)
|
||||||
using std::swap;
|
using std::swap;
|
||||||
@@ -577,12 +578,13 @@ public:
|
|||||||
std::swap(first.address, second.address);
|
std::swap(first.address, second.address);
|
||||||
std::swap(first.nTime, second.nTime);
|
std::swap(first.nTime, second.nTime);
|
||||||
std::swap(first.nFeeTXHash, second.nFeeTXHash);
|
std::swap(first.nFeeTXHash, second.nFeeTXHash);
|
||||||
first.mapVotes.std::swap(second.mapVotes);
|
first.mapVotes.swap(second.mapVotes);
|
||||||
}
|
}
|
||||||
|
|
||||||
CBudgetProposalBroadcast& operator=(CBudgetProposalBroadcast from)
|
CBudgetProposalBroadcast& operator=(CBudgetProposalBroadcast from)
|
||||||
{
|
{
|
||||||
std::swap(*this, from);
|
using std::swap;
|
||||||
|
swap(*this, from);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -7,10 +7,10 @@
|
|||||||
#ifndef AGRARIAN_BITCOIN_MINER_H
|
#ifndef AGRARIAN_BITCOIN_MINER_H
|
||||||
#define AGRARIAN_BITCOIN_MINER_H
|
#define AGRARIAN_BITCOIN_MINER_H
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <std::string>
|
|
||||||
#include <std::vector>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
#include <vector>
|
||||||
class CBlock;
|
class CBlock;
|
||||||
class CBlockHeader;
|
class CBlockHeader;
|
||||||
class CBlockIndex;
|
class CBlockIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user