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_) { }
|