Skip to content

Commit 47ac15f

Browse files
authored
Merge pull request #470 from Kritzefitz/boost-1.67
Build: Compatibility with boost 1.67
2 parents bb51359 + bd7222c commit 47ac15f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/miner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct modifiedentry_iter {
8686
// except operating on CTxMemPoolModifiedEntry.
8787
// TODO: refactor to avoid duplication of this logic.
8888
struct CompareModifiedEntry {
89-
bool operator()(const CTxMemPoolModifiedEntry &a, const CTxMemPoolModifiedEntry &b)
89+
bool operator()(const CTxMemPoolModifiedEntry &a, const CTxMemPoolModifiedEntry &b) const
9090
{
9191
double f1 = (double)a.nModFeesWithAncestors * b.nSizeWithAncestors;
9292
double f2 = (double)b.nModFeesWithAncestors * a.nSizeWithAncestors;

src/ntpclient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool CNtpClient::getTimestamp(uint64_t &timeRecv)
4848
timeStruct.tv_usec = 0;
4949
FD_ZERO(&fileDescriptorSet);
5050

51-
int nativeSocket = socket.native();
51+
int nativeSocket = socket.native_handle();
5252

5353
FD_SET(nativeSocket,&fileDescriptorSet);
5454

src/txmempool.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ struct mempoolentry_txid
226226
class CompareTxMemPoolEntryByDescendantScore
227227
{
228228
public:
229-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
229+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
230230
{
231231
bool fUseADescendants = UseDescendantScore(a);
232232
bool fUseBDescendants = UseDescendantScore(b);
@@ -248,7 +248,7 @@ class CompareTxMemPoolEntryByDescendantScore
248248
}
249249

250250
// Calculate which score to use for an entry (avoiding division).
251-
bool UseDescendantScore(const CTxMemPoolEntry &a)
251+
bool UseDescendantScore(const CTxMemPoolEntry &a) const
252252
{
253253
double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
254254
double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
@@ -263,7 +263,7 @@ class CompareTxMemPoolEntryByDescendantScore
263263
class CompareTxMemPoolEntryByScore
264264
{
265265
public:
266-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
266+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
267267
{
268268
double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
269269
double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
@@ -277,7 +277,7 @@ class CompareTxMemPoolEntryByScore
277277
class CompareTxMemPoolEntryByEntryTime
278278
{
279279
public:
280-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
280+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
281281
{
282282
return a.GetTime() < b.GetTime();
283283
}
@@ -286,7 +286,7 @@ class CompareTxMemPoolEntryByEntryTime
286286
class CompareTxMemPoolEntryByAncestorFee
287287
{
288288
public:
289-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
289+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
290290
{
291291
double aFees = a.GetModFeesWithAncestors();
292292
double aSize = a.GetSizeWithAncestors();

0 commit comments

Comments
 (0)