From 06e67002682433b119a374bfe68d05d1d2e606de Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 2 Dec 2022 21:57:29 +0000 Subject: [PATCH] Fix an inscrutable g++ error due to non-const callable comparison --- osscan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osscan.cc b/osscan.cc index a34530338..c663bb925 100644 --- a/osscan.cc +++ b/osscan.cc @@ -663,7 +663,7 @@ int FingerTest::getMaxPoints() const { of tests when they are displayed. Returns true if and only if the test a should come before the test b. */ struct FingerTestCmp { - bool operator()(const FingerTest* a, const FingerTest* b) { + bool operator()(const FingerTest* a, const FingerTest* b) const { if (a->id != b->id) return a->id < b->id; if (a->results == NULL) {