mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-29 17:02:11 +00:00
const auto instead of decltype
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user