summaryrefslogtreecommitdiff
blob: 695fc0b674c3006e2420c4d2a2c209ff661d19f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
gcc-11 needs const operator()

https://bugs.gentoo.org/768204
--- a/BPGame.h
+++ b/BPGame.h
@@ -53,7 +53,7 @@ class BPMiniGame;
 class SpriteFont;
 
 struct cmp_str {
-	bool operator()(char const *a, char const *b) {
+	bool operator()(char const *a, char const *b) const {
 		return std::strcmp(a, b) < 0;
 	}
 };