diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-02-01 15:02:39 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-02-01 16:44:56 +0100 |
commit | 9bf0e5375134a0d230bc966f439f69a09c1556cb (patch) | |
tree | fb91f3cff998e651cda7003f3a7612e60aadded8 /src | |
parent | serialization: Use pos_type instead of streampos (diff) | |
download | monero-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')
-rw-r--r-- | src/cryptonote_core/tx_pool.h | 2 |
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; |