1
0
mirror of https://github.com/nlohmann/json synced 2024-11-30 23:50:08 +00:00

🔨 using emplace

This commit is contained in:
Niels Lohmann 2017-07-30 20:01:31 +02:00
parent 96dd4ffa19
commit 85c768084b
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -2967,7 +2967,7 @@ class parser
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