QMultiHash::emplace: work around MSVC2019 recursion bug
It was already worked around in QHash, but QMultiHash got overlooked. Fixes: QTBUG-98943 Change-Id: I115bf2090500257b5141a386818ae1553702a8c8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
52c9543475
commit
9c13ae4fe7
@ -1754,7 +1754,8 @@ public:
|
||||
template <typename ...Args>
|
||||
iterator emplace(const Key &key, Args &&... args)
|
||||
{
|
||||
return emplace(Key(key), std::forward<Args>(args)...);
|
||||
Key copy = key; // Needs to be explicit for MSVC 2019
|
||||
return emplace(std::move(copy), std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
template <typename ...Args>
|
||||
|
Loading…
x
Reference in New Issue
Block a user