Skip to content

Commit

Permalink
fix trailing space
Browse files Browse the repository at this point in the history
  • Loading branch information
changkhothuychung committed Oct 17, 2024
1 parent fb80a35 commit 7f4589b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/beman/optional26/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ class optional {
static_assert(!std::is_array_v<U>, "U must not be an array");
static_assert(!std::is_same_v<U, in_place_t>, "U must not be an inplace type");
static_assert(!std::is_same_v<U, nullopt_t>, "U must not be nullopt_t");
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
"U must be either an object or a reference"); /// References now allowed
return (has_value()) ? optional<U>{std::invoke(std::forward<F>(f), value_)} : optional<U>{};
}
Expand All @@ -547,7 +547,7 @@ class optional {
static_assert(!std::is_array_v<U>, "U must not be an array");
static_assert(!std::is_same_v<U, in_place_t>, "U must not be an inplace type");
static_assert(!std::is_same_v<U, nullopt_t>, "U must not be nullopt_t type");
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
static_assert(std::is_object_v<U> || std::is_reference_v<U>,
"U must be either an objecy or a reference"); /// References now allowed
return (has_value()) ? optional<U>{std::invoke(std::forward<F>(f), std::move(value_))} : optional<U>{};
}
Expand Down

0 comments on commit 7f4589b

Please sign in to comment.