提交 ea3e922a 编写于 作者: A Aaron Burghardt

Fix performance regression introduced with the parsing callback feature.

上级 2b825760
......@@ -3964,7 +3964,7 @@ class basic_json
auto value = parse_internal(keep);
if (keep and keep_tag and not value.is_discarded())
{
result[key] = value;
result[key] = std::move(value);
}
}
while (last_token == lexer::token_type::value_separator);
......@@ -4015,7 +4015,7 @@ class basic_json
auto value = parse_internal(keep);
if (keep and not value.is_discarded())
{
result.push_back(value);
result.push_back(std::move(value));
}
}
while (last_token == lexer::token_type::value_separator);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册