diff -r ee5758ddb6d2 -r 8e1fe64ce4e3 src/basics.h --- a/src/basics.h Sat Jun 11 15:20:24 2022 +0300 +++ b/src/basics.h Sun Jun 12 20:47:04 2022 +0300 @@ -308,8 +308,8 @@ return qHash(key.x) ^ rotl10(qHash(key.y)) ^ rotl20(qHash(key.z)); } -template -void forValueInMap(const std::map& map, Fn&& fn) +template +void forValueInMap(T&& map, Fn&& fn) { for (const auto& it : map) { fn(it.second);