BLI: fix type forwarding in Map

Without this change, the code might do an unwanted conversion.
This commit is contained in:
2020-06-10 18:27:11 +02:00
parent 4c172f7ca6
commit 84d4447bc5

View File

@@ -610,7 +610,7 @@ class Map {
*/
template<typename ForwardKey> Value &lookup_or_add_default_as(ForwardKey &&key)
{
return this->lookup_or_add_cb(std::forward<ForwardKey>(key), []() { return Value(); });
return this->lookup_or_add_cb_as(std::forward<ForwardKey>(key), []() { return Value(); });
}
/**