Skip to content

Commit

Permalink
🔨 using emplace
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jul 30, 2017
1 parent 96dd4ff commit 85c7680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85c7680

Please sign in to comment.