@@ -149,7 +149,7 @@ _LIBCPP_HIDE_FROM_ABI decltype(auto) __visit_format_arg(_Visitor&& __vis, basic_
149149 __libcpp_unreachable ();
150150}
151151
152- # if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
152+ # if _LIBCPP_STD_VER >= 26
153153
154154template <class _Rp , class _Visitor , class _Context >
155155_LIBCPP_HIDE_FROM_ABI _Rp __visit_format_arg (_Visitor&& __vis, basic_format_arg<_Context> __arg) {
@@ -200,7 +200,7 @@ _LIBCPP_HIDE_FROM_ABI _Rp __visit_format_arg(_Visitor&& __vis, basic_format_arg<
200200 __libcpp_unreachable ();
201201}
202202
203- # endif // _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
203+ # endif // _LIBCPP_STD_VER >= 26
204204
205205// / Contains the values used in basic_format_arg.
206206// /
@@ -285,7 +285,7 @@ class _LIBCPP_NO_SPECIALIZATIONS basic_format_arg {
285285
286286 _LIBCPP_HIDE_FROM_ABI explicit operator bool () const noexcept { return __type_ != __format::__arg_t ::__none; }
287287
288- # if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
288+ # if _LIBCPP_STD_VER >= 26
289289
290290 // This function is user facing, so it must wrap the non-standard types of
291291 // the "variant" in a handle to stay conforming. See __arg_t for more details.
@@ -329,7 +329,7 @@ class _LIBCPP_NO_SPECIALIZATIONS basic_format_arg {
329329 }
330330 }
331331
332- # endif // _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
332+ # endif // _LIBCPP_STD_VER >= 26
333333
334334private:
335335 using char_type = typename _Context::char_type;
@@ -371,11 +371,8 @@ class basic_format_arg<_Context>::handle {
371371// This function is user facing, so it must wrap the non-standard types of
372372// the "variant" in a handle to stay conforming. See __arg_t for more details.
373373template <class _Visitor , class _Context >
374- # if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
375- _LIBCPP_DEPRECATED_IN_CXX26
376- # endif
377- _LIBCPP_HIDE_FROM_ABI decltype (auto )
378- visit_format_arg(_Visitor&& __vis, basic_format_arg<_Context> __arg) {
374+ _LIBCPP_DEPRECATED_IN_CXX26 _LIBCPP_HIDE_FROM_ABI decltype (auto )
375+ visit_format_arg(_Visitor&& __vis, basic_format_arg<_Context> __arg) {
379376 switch (__arg.__type_ ) {
380377# if _LIBCPP_HAS_INT128
381378 case __format::__arg_t ::__i128: {
@@ -387,7 +384,7 @@ _LIBCPP_DEPRECATED_IN_CXX26
387384 typename __basic_format_arg_value<_Context>::__handle __h{__arg.__value_ .__u128_ };
388385 return std::invoke (std::forward<_Visitor>(__vis), typename basic_format_arg<_Context>::handle{__h});
389386 }
390- # endif // _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
387+ # endif // _LIBCPP_HAS_INT128
391388 default :
392389 return std::__visit_format_arg (std::forward<_Visitor>(__vis), __arg);
393390 }
0 commit comments