2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

Use a move instead of a copy in detail::make_parse_result().

This commit is contained in:
Zach Laine
2024-12-02 21:27:44 -06:00
parent 9733445118
commit df966c78f6

View File

@@ -1581,7 +1581,7 @@ namespace boost { namespace parser {
{
std::optional<T> retval;
if (success)
retval = x;
retval = std::move(x);
return retval;
}