diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:04 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:11 +0000 | 
| commit | e3b557809604d036af6e00c60f012c2025b59a5e (patch) | |
| tree | 8a11ba2269a3b669601e2fd41145b174008f4da8 /libcxx/include/__format/formatter.h | |
| parent | 08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff) | |
Diffstat (limited to 'libcxx/include/__format/formatter.h')
| -rw-r--r-- | libcxx/include/__format/formatter.h | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/libcxx/include/__format/formatter.h b/libcxx/include/__format/formatter.h index 4816f961c445..900a09af4e99 100644 --- a/libcxx/include/__format/formatter.h +++ b/libcxx/include/__format/formatter.h @@ -11,7 +11,6 @@  #define _LIBCPP___FORMAT_FORMATTER_H  #include <__availability> -#include <__concepts/same_as.h>  #include <__config>  #include <__format/format_fwd.h> @@ -39,15 +38,16 @@ struct _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FORMAT formatter {    formatter& operator=(const formatter&) = delete;  }; -namespace __formatter { +#  if _LIBCPP_STD_VER > 20 -/** The character types that formatters are specialized for. */ -template <class _CharT> -concept __char_type = same_as<_CharT, char> || same_as<_CharT, wchar_t>; +template <class _Tp> +_LIBCPP_HIDE_FROM_ABI constexpr void __set_debug_format(_Tp& __formatter) { +  if constexpr (requires { __formatter.set_debug_format(); }) +    __formatter.set_debug_format(); +} -} // namespace __formatter - -#endif //_LIBCPP_STD_VER > 17 +#  endif // _LIBCPP_STD_VER > 20 +#endif   // _LIBCPP_STD_VER > 17  _LIBCPP_END_NAMESPACE_STD | 
