From 3e4771ad1c0b08d02f819942b9750cb69497f206 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 18 Oct 2021 22:32:46 +0300 Subject: [PATCH] mu-options: avoid clang warning --- lib/utils/mu-option.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }