summarylogtreecommitdiffstats
path: root/0004-ObjectsIteratorComp_operator_const.patch
blob: 7118838456a04d33b4b67430b00719d205978cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -pNaru5 a/objectcache.hh b/objectcache.hh
--- a/objectcache.hh	2020-06-07 11:35:57.000000000 -0400
+++ b/objectcache.hh	2024-01-01 23:03:39.196822579 -0500
@@ -64,11 +64,11 @@ private:
   };
   typedef std::list< Object > Objects;
 
   struct ObjectsIteratorComp
   {
-    bool operator () ( Objects::iterator const & x, Objects::iterator const & y )
+    bool operator () ( Objects::iterator const & x, Objects::iterator const & y ) const
     { return x->id < y->id; }
   };
 
   typedef std::set< Objects::iterator, ObjectsIteratorComp > ObjectMap;