File: gcc-12.patch

package info (click to toggle)
quorum 1.1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,104 kB
  • sloc: cpp: 21,395; perl: 201; makefile: 90; sh: 81
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
Description: Fix build with gcc-12
Bug-Debian: https://bugs.debian.org/1013026
Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 25 Jul 2022 09:34:19 +0200

--- a/src/err_log.hpp
+++ b/src/err_log.hpp
@@ -39,7 +39,7 @@ private:
     entry(type_t t, T p) : type(t), pos(p) {}
   };
 
-  struct greater_than_pos : std::unary_function<entry, bool> {
+  struct greater_than_pos {
     T pos;
     bool operator()(entry& e) { return e.pos >= *pos; } // Compare the raw value of pos, not using the operator>=
     greater_than_pos(T& pos_) : pos(pos_) { }