File: 0004-ObjectsIteratorComp_operator_const.patch

package info (click to toggle)
zbackup 1.5-4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: cpp: 6,957; ansic: 468; python: 207; makefile: 10
file content (16 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
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;