aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-02-01 15:02:39 +0100
committerTom Smeding <tom.smeding@gmail.com>2019-02-01 16:44:56 +0100
commit9bf0e5375134a0d230bc966f439f69a09c1556cb (patch)
treefb91f3cff998e651cda7003f3a7612e60aadded8 /src/cryptonote_core/tx_pool.h
parentserialization: Use pos_type instead of streampos (diff)
downloadmonero-9bf0e5375134a0d230bc966f439f69a09c1556cb.tar.xz
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.
Diffstat (limited to 'src/cryptonote_core/tx_pool.h')
-rw-r--r--src/cryptonote_core/tx_pool.h2
1 files changed, 1 insertions, 1 deletions
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;