2
0
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:
Zach Laine
2025-07-12 14:42:47 -05:00
parent 5788fb6967
commit 810adb43f6

View File

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