mirror of
https://github.com/nlohmann/json.git
synced 2025-07-12 09:21:42 +03:00
replaced a copy by a move to increase performance by 16-25%
This commit is contained in:
@ -7790,7 +7790,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:
|
||||
|
Reference in New Issue
Block a user