diff --git a/ostd/maybe.hh b/ostd/maybe.hh index a7b7ff3..9235e82 100644 --- a/ostd/maybe.hh +++ b/ostd/maybe.hh @@ -87,9 +87,7 @@ namespace detail { } constexpr MaybeStorage(Value const &v): p_value(v), p_engaged(true) {} - constexpr MaybeStorage(Value &&v): - p_value(move(v)), p_engaged(true) - {} + constexpr MaybeStorage(Value &&v): p_value(move(v)), p_engaged(true) {} template constexpr MaybeStorage(InPlace, A &&...args): @@ -276,7 +274,7 @@ public: constexpr Value value_or(U &&v) && { static_assert( IsMoveConstructible, - "Maybe::value_or: T must be copy constructible" + "Maybe::value_or: T must be move constructible" ); static_assert( IsConvertible,