mirror of
https://github.com/trafi/maybe-result-cpp
synced 2024-11-23 02:43:26 +01:00
Merge pull request #4 from trafi/feature/use-std-move-to-move-value-in-move-accessor
Use std::move to move value in move accessor.
This commit is contained in:
commit
7f68d21a48
@ -146,7 +146,7 @@ namespace maybe {
|
||||
|
||||
OPTIONAL_MUTABLE_CONSTEXPR T&& ok_value() &&
|
||||
{
|
||||
return var_ok.value();
|
||||
return std::move(var_ok.value());
|
||||
}
|
||||
|
||||
#else
|
||||
@ -223,7 +223,7 @@ namespace maybe {
|
||||
|
||||
OPTIONAL_MUTABLE_CONSTEXPR E&& err_value() &&
|
||||
{
|
||||
return var_err.value();
|
||||
return std::move(var_err.value());
|
||||
}
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user