File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -532,10 +532,10 @@ class optional {
532
532
template <class F >
533
533
constexpr auto transform (F&& f) & {
534
534
using U = std::invoke_result_t <F, T&>;
535
- static_assert (!std::is_array_v<U>);
536
- static_assert (!std::is_same_v<U, in_place_t >);
537
- static_assert (!std::is_same_v<U, nullopt_t >);
538
- static_assert (std::is_object_v<U> || std::is_reference_v<U>); // / References now allowed
535
+ static_assert (!std::is_array_v<U>, " U must not be an array " );
536
+ static_assert (!std::is_same_v<U, in_place_t >, " U must not be an inplace type " );
537
+ static_assert (!std::is_same_v<U, nullopt_t >, " U must not be nullopt_t " );
538
+ static_assert (std::is_object_v<U> || std::is_reference_v<U>, " U must be either an object or a reference " ); // / References now allowed
539
539
return (has_value ()) ? optional<U>{std::invoke (std::forward<F>(f), value_)} : optional<U>{};
540
540
}
541
541
You can’t perform that action at this time.
0 commit comments