1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-13 20:21:48 +03:00

replaced a copy by a move to increase performance by 16-25%

This commit is contained in:
Niels
2016-06-30 12:43:06 +02:00
parent 7ffa07e3a3
commit a5262c18e2
2 changed files with 2 additions and 2 deletions

View File

@ -8480,7 +8480,7 @@ basic_json_parser_63:
// 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:

View File

@ -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: