From 84d4447bc5220246f9d16ae3e91419af47b37b58 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 10 Jun 2020 18:27:11 +0200 Subject: BLI: fix type forwarding in Map Without this change, the code might do an unwanted conversion. --- source/blender/blenlib/BLI_map.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_map.hh') diff --git a/source/blender/blenlib/BLI_map.hh b/source/blender/blenlib/BLI_map.hh index 82415dd5726..13f1a967d65 100644 --- a/source/blender/blenlib/BLI_map.hh +++ b/source/blender/blenlib/BLI_map.hh @@ -610,7 +610,7 @@ class Map { */ template Value &lookup_or_add_default_as(ForwardKey &&key) { - return this->lookup_or_add_cb(std::forward(key), []() { return Value(); }); + return this->lookup_or_add_cb_as(std::forward(key), []() { return Value(); }); } /** -- cgit v1.2.3