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)
This commit is contained in:
Jake Turner
2021-02-14 06:12:19 +00:00
committed by Baldur Karlsson
parent 0fb11c6c0e
commit b7eebf9f68
+1 -1
View File
@@ -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;