File: gcc11.patch

package info (click to toggle)
skewer 0.2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 332 kB
  • sloc: cpp: 5,384; makefile: 46; sh: 42
file content (15 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Declare operator as const to fix gcc11 FTBFS
Author: Nilesh Patra <nilesh@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984334
Last-Update: 2021-10-31
--- a/src/matrix.h
+++ b/src/matrix.h
@@ -49,7 +49,7 @@
 class ElementComparator
 {
 public:
-	bool operator()(const ELEMENT &elem1, const ELEMENT &elem2){
+	bool operator()(const ELEMENT &elem1, const ELEMENT &elem2) const {
 		return elem1.idx.pos < elem2.idx.pos;
 	}
 };