From 7d13a593e93c2d39e44ae89b2ac01cd7ad60ea98 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 2 Nov 2020 11:48:22 +0100 Subject: [PATCH] rogueviz:subquotient:: removed a C++17-ism --- rogueviz/subquotient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rogueviz/subquotient.cpp b/rogueviz/subquotient.cpp index b2817d01..da2b0577 100644 --- a/rogueviz/subquotient.cpp +++ b/rogueviz/subquotient.cpp @@ -54,7 +54,9 @@ void create_subquotient(int qty = -1, int id = 0) { map by_cycle; - for(auto [s, wb]: vmap) { + for(auto swb: vmap) { + auto& s = swb.first; + auto& wb = swb.second; if(s == wb.at) { vertex++; continue; } bool is_edge = false; for(int j=0; jtype; j++) if(s->move(j) == wb.at && (wb+j).peek() == s)