Fix compile error at GCC11

Fixes #3273

Signed-off-by: HungMingWu <u9089000@gmail.com>
This commit is contained in:
HungMingWu 2022-01-08 11:42:46 +08:00 committed by Geza Lore
parent 8c58612a3b
commit 78147ee8d7
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ Graham Rushton
Harald Heckmann
Howard Su
Huang Rui
HungMingWu
HyungKi Jeong
Iru Cai
Ivan Vnučec

View File

@ -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());
}