From 9bf0e5375134a0d230bc966f439f69a09c1556cb Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 1 Feb 2019 15:02:39 +0100 Subject: cryptonote: Add const-qualifier on comparison functor The original code did not compile with GCC 8.2.1 in C++17 mode, since comparison functions for std::set's must be invocable as const. --- src/cryptonote_core/tx_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptonote_core/tx_pool.h') diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index 670d70d77..8dd0337f0 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -61,7 +61,7 @@ namespace cryptonote class txCompare { public: - bool operator()(const tx_by_fee_and_receive_time_entry& a, const tx_by_fee_and_receive_time_entry& b) + bool operator()(const tx_by_fee_and_receive_time_entry& a, const tx_by_fee_and_receive_time_entry& b) const { // sort by greatest first, not least if (a.first.first > b.first.first) return true; -- cgit v1.2.3