mirror of https://github.com/djcb/mu.git
mu-options: avoid clang warning
This commit is contained in:
parent
88f5f92b72
commit
3e4771ad1c
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue