File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
include/beman/optional/detail/stl_interfaces Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ BEMAN_OPTIONAL_DETAIL_STL_INTERFACES_NAMESPACE_V1 {
229229 template <typename D = Derived>
230230 constexpr auto operator ->() const
231231 noexcept (noexcept (detail::make_pointer<pointer, reference>(*std::declval<const D&>())))
232- -> decltype(detail::make_pointer<pointer, reference>(*std::declval<const D&>())) {
232+ -> decltype(detail::make_pointer<pointer, reference>(*std::declval<const D&>())) {
233233 return detail::make_pointer<pointer, reference>(*derived ());
234234 }
235235
Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ class optional<T&> {
132132 }
133133
134134 template <class F >
135- constexpr auto
136- transform (F&& f) const -> optional<std::invoke_result_t <F, T&>> {
135+ constexpr auto transform (F&& f) const
136+ -> optional<std::invoke_result_t<F, T&>> {
137137 using U = std::invoke_result_t <F, T&>;
138138 return (has_value ())
139139 ? optional<U>{std::invoke (std::forward<F>(f), *value_)}
You can’t perform that action at this time.
0 commit comments