From 78147ee8d7d5ee86d5bd9438c864a3c7bb063ee0 Mon Sep 17 00:00:00 2001 From: HungMingWu Date: Sat, 8 Jan 2022 11:42:46 +0800 Subject: [PATCH] Fix compile error at GCC11 Fixes #3273 Signed-off-by: HungMingWu --- docs/CONTRIBUTORS | 1 + src/V3TSP.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 38d913faa..6b55ee4dc 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -31,6 +31,7 @@ Graham Rushton Harald Heckmann Howard Su Huang Rui +HungMingWu HyungKi Jeong Iru Cai Ivan Vnučec diff --git a/src/V3TSP.cpp b/src/V3TSP.cpp index 371bbb892..4032a0622 100644 --- a/src/V3TSP.cpp +++ b/src/V3TSP.cpp @@ -141,7 +141,7 @@ private: } struct EdgeListCmp final { - bool operator()(const EdgeList* ap, const EdgeList* bp) { + bool operator()(const EdgeList* ap, const EdgeList* bp) const { // Simply compare heads return edgeCmp(bp->back(), ap->back()); }