Skip to content

Commit 7f4589b

Browse files
fix trailing space
1 parent fb80a35 commit 7f4589b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/beman/optional26/optional.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class optional {
536536
static_assert(!std::is_array_v<U>, "U must not be an array");
537537
static_assert(!std::is_same_v<U, in_place_t>, "U must not be an inplace type");
538538
static_assert(!std::is_same_v<U, nullopt_t>, "U must not be nullopt_t");
539-
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
539+
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
540540
"U must be either an object or a reference"); /// References now allowed
541541
return (has_value()) ? optional<U>{std::invoke(std::forward<F>(f), value_)} : optional<U>{};
542542
}
@@ -547,7 +547,7 @@ class optional {
547547
static_assert(!std::is_array_v<U>, "U must not be an array");
548548
static_assert(!std::is_same_v<U, in_place_t>, "U must not be an inplace type");
549549
static_assert(!std::is_same_v<U, nullopt_t>, "U must not be nullopt_t type");
550-
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
550+
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
551551
"U must be either an objecy or a reference"); /// References now allowed
552552
return (has_value()) ? optional<U>{std::invoke(std::forward<F>(f), std::move(value_))} : optional<U>{};
553553
}

0 commit comments

Comments
 (0)