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:
@@ -1581,7 +1581,7 @@ namespace boost { namespace parser {
|
||||
{
|
||||
std::optional<T> retval;
|
||||
if (success)
|
||||
retval = x;
|
||||
retval = std::move(x);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user