@@ -980,8 +980,7 @@ class optional
980
980
#ifndef TL_OPTIONAL_NO_CONSTRR
981
981
template <class F >
982
982
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 &&
985
984
{
986
985
return optional_map_impl (std::move (*this ), std::forward<F>(f));
987
986
}
@@ -1044,8 +1043,8 @@ class optional
1044
1043
#ifndef TL_OPTIONAL_NO_CONSTRR
1045
1044
template <class F >
1046
1045
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 &&
1049
1048
{
1050
1049
return optional_map_impl (std::move (*this ), std::forward<F>(f));
1051
1050
}
@@ -2035,8 +2034,8 @@ class optional<T&>
2035
2034
#ifndef TL_OPTIONAL_NO_CONSTRR
2036
2035
template <class F >
2037
2036
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 &&
2040
2039
{
2041
2040
return detail::optional_map_impl (std::move (*this ), std::forward<F>(f));
2042
2041
}
@@ -2101,9 +2100,9 @@ class optional<T&>
2101
2100
2102
2101
#ifndef TL_OPTIONAL_NO_CONSTRR
2103
2102
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 &&
2107
2106
{
2108
2107
return detail::optional_map_impl (std::move (*this ), std::forward<F>(f));
2109
2108
}
0 commit comments