1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-22 02:32:02 +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:
Nerijus Arlauskas 2016-09-23 14:04:19 +03:00 committed by GitHub
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