mirror of
https://github.com/nlohmann/json.git
synced 2026-10-11 17:07:15 +00:00
🔨 using emplace
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -2967,7 +2967,7 @@ class parser
|
|||||||
|
|
||||||
if (keep and keep_tag and not value.is_discarded())
|
if (keep and keep_tag and not value.is_discarded())
|
||||||
{
|
{
|
||||||
result.m_value.object->operator[](std::move(key)) = std::move(value);
|
result.m_value.object->emplace(std::move(key), std::move(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
// comma -> next value
|
// comma -> next value
|
||||||
|
|||||||
Reference in new issue
Block a user