mu-options: avoid clang warning

This commit is contained in:
Dirk-Jan C. Binnema 2021-10-18 22:32:46 +03:00
parent 88f5f92b72
commit 3e4771ad1c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace Mu {
/// Either a value of type T, or None
template <typename T> using Option=tl::optional<T>;
template <typename T> Option<T> Some(T&& t) { return t; }
template <typename T> Option<T> Some(T&& t) { return std::move(t); }
constexpr auto Nothing = tl::nullopt; // 'None' is take already
}