diff --git a/lib/utils/mu-option.hh b/lib/utils/mu-option.hh index cc042e8d..c01ce0dd 100644 --- a/lib/utils/mu-option.hh +++ b/lib/utils/mu-option.hh @@ -22,7 +22,7 @@ namespace Mu { /// Either a value of type T, or None template using Option=tl::optional; -template Option Some(T&& t) { return t; } +template Option Some(T&& t) { return std::move(t); } constexpr auto Nothing = tl::nullopt; // 'None' is take already }