From b7eebf9f68c982791c82893ada26c64f6969d638 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sun, 14 Feb 2021 06:12:19 +0000 Subject: [PATCH] Compile error fix for Apple clang version 12.0.0 candidate function not viable: 'this' argument has type 'const TestMetadata', but method is not marked const bool operator<(const TestMetadata &o) --- util/test/demos/test_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/test/demos/test_common.h b/util/test/demos/test_common.h index 27db5282d..3f698809f 100644 --- a/util/test/demos/test_common.h +++ b/util/test/demos/test_common.h @@ -242,7 +242,7 @@ struct TestMetadata bool IsAvailable() const { return test->Avail.empty(); } const char *AvailMessage() const { return test->Avail.c_str(); } - bool operator<(const TestMetadata &o) + bool operator<(const TestMetadata &o) const { if(API != o.API) return API < o.API;