1
1
Fork 0
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-05-08 23:16:11 +02:00

Use std::move to move value in move accessor.

This commit is contained in:
Nerijus Arlauskas 2016-09-23 13:58:51 +03:00
parent 26145fdd1e
commit 0a66e48140

View File

@ -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