@@ -980,8 +980,7 @@ class optional
980980#ifndef TL_OPTIONAL_NO_CONSTRR
981981 template <class F >
982982 constexpr decltype (optional_map_impl(std::declval<const optional&&>(),
983- std::declval<F&&>()))
984- map(F&& f) const &&
983+ std::declval<F&&>())) map(F&& f) const &&
985984 {
986985 return optional_map_impl (std::move (*this ), std::forward<F>(f));
987986 }
@@ -1044,8 +1043,8 @@ class optional
10441043#ifndef TL_OPTIONAL_NO_CONSTRR
10451044 template <class F >
10461045 constexpr decltype (optional_map_impl(std::declval<const optional&&>(),
1047- std::declval<F&&>()))
1048- transform(F&& f) const &&
1046+ std::declval<F&&>())) transform(F&& f)
1047+ const &&
10491048 {
10501049 return optional_map_impl (std::move (*this ), std::forward<F>(f));
10511050 }
@@ -2035,8 +2034,8 @@ class optional<T&>
20352034#ifndef TL_OPTIONAL_NO_CONSTRR
20362035 template <class F >
20372036 constexpr decltype (detail::optional_map_impl(std::declval<const optional&&>(),
2038- std::declval<F&&>()))
2039- map(F&& f) const &&
2037+ std::declval<F&&>())) map(F&& f)
2038+ const &&
20402039 {
20412040 return detail::optional_map_impl (std::move (*this ), std::forward<F>(f));
20422041 }
@@ -2101,9 +2100,9 @@ class optional<T&>
21012100
21022101#ifndef TL_OPTIONAL_NO_CONSTRR
21032102 template <class F >
2104- constexpr decltype (detail::optional_map_impl(std::declval< const optional&&>(),
2105- std::declval<F &&>()))
2106- transform(F&& f) const &&
2103+ constexpr decltype (detail::optional_map_impl(
2104+ std::declval<const optional &&>(),
2105+ std::declval<F&&>())) transform(F&& f) const &&
21072106 {
21082107 return detail::optional_map_impl (std::move (*this ), std::forward<F>(f));
21092108 }
0 commit comments