1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-25 07:28:02 +02:00

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

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
}