From 76d0538b3cb6ebb731415a5c2a800cedcf810ecf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 18 Jul 2018 00:49:13 +0200 Subject: [PATCH] added const --- irregular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irregular.cpp b/irregular.cpp index 8d6ebc49..a5aa6f72 100644 --- a/irregular.cpp +++ b/irregular.cpp @@ -157,7 +157,7 @@ bool step(int delta) { case 2: { - sort(cells.begin(), cells.end(), [] (cellinfo &s1, cellinfo &s2) { return hdist0(s1.p) < hdist0(s2.p); }); + sort(cells.begin(), cells.end(), [] (const cellinfo &s1, const cellinfo &s2) { return hdist0(s1.p) < hdist0(s2.p); }); make_cells_of_heptagon(); edgelens.clear();