From b202cb43ad4b7c644368f638231e391e47171cfb Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 2 Sep 2016 18:20:31 +0100 Subject: [PATCH] typo --- ostd/maybe.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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,