mirror of
https://github.com/boostorg/parser.git
synced 2026-01-19 04:22:13 +00:00
Use a move asssignment instead of a copy assignment when returning a result
via detail::make_parse_result(). Supercedes PR #247.
This commit is contained in:
@@ -1548,7 +1548,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