From 2d0fcd9a4d1646edabf9e62ec73d346aed352819 Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Sat, 1 Jul 2023 18:50:02 +0200 Subject: [PATCH] build: fix the comparsion object error with gcc 11 This commit fixes the error below when trying to compile with GCC 11.3.0. ``` /usr/include/c++/12/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const 770 | is_invocable_v, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~IteratorComparator::operator() ``` --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index cd3d63c25e0f..7b3baa77e7da 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -94,7 +94,7 @@ FeeFilterRounder filterRounder(::minRelayTxFee); struct IteratorComparator { template - bool operator()(const I& a, const I& b) + bool operator()(const I& a, const I& b) const { return &(*a) < &(*b); }