const auto instead of decltype

This commit is contained in:
Bluub
2021-06-19 13:48:55 +02:00
parent 638c134529
commit 0d49984fae
+1 -1
View File
@@ -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;