1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-12 09:21:42 +03:00

Merge branch 'feature/parser_performance' into develop

- improved parser performance by avoiding a copy of the result value
This commit is contained in:
Niels
2016-07-01 17:44:27 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -7795,7 +7795,7 @@ class basic_json
// return parser result and replace it with null in case the
// top-level value was discarded by the callback function
return result.is_discarded() ? basic_json() : result;
return result.is_discarded() ? basic_json() : std::move(result);
}
private: