Commit c6d45c30 authored by Niels's avatar Niels

Merge branch 'feature/parser_performance' into develop

- improved parser performance by avoiding a copy of the result value
parents 8f9f5617 a5262c18
......@@ -8485,7 +8485,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:
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment