From 0d49984fae3dc6107d3e46ec8cdb74a9b97f20b1 Mon Sep 17 00:00:00 2001 From: Bluub Date: Sat, 19 Jun 2021 13:48:55 +0200 Subject: [PATCH] const auto instead of decltype --- sources/Map/LuaMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Map/LuaMap.cpp b/sources/Map/LuaMap.cpp index 11e3d0d3..a76f4700 100644 --- a/sources/Map/LuaMap.cpp +++ b/sources/Map/LuaMap.cpp @@ -99,7 +99,7 @@ namespace BBM while (open.size()) { auto min_elem = std::min_element(open.begin(), open.end(), - [&fScore](const decltype(open)::value_type &l, const decltype(open)::value_type &r) -> bool + [&fScore](const auto &l, const auto &r) -> bool { if (fScore.find(l) == fScore.end()) return true;