mu-options: avoid clang warning
This commit is contained in:
@ -22,7 +22,7 @@ namespace Mu {
|
|||||||
/// Either a value of type T, or None
|
/// Either a value of type T, or None
|
||||||
template <typename T> using Option=tl::optional<T>;
|
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
|
constexpr auto Nothing = tl::nullopt; // 'None' is take already
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user