Revert Char* formatter removal

This commit is contained in:
Victor Zverovich 2023-05-17 06:11:11 -07:00
parent 9a034b0d55
commit 616a493786
2 changed files with 3 additions and 2 deletions

View File

@ -2706,6 +2706,7 @@ FMT_FORMAT_AS(short, int);
FMT_FORMAT_AS(unsigned short, unsigned); FMT_FORMAT_AS(unsigned short, unsigned);
FMT_FORMAT_AS(long, detail::long_type); FMT_FORMAT_AS(long, detail::long_type);
FMT_FORMAT_AS(unsigned long, detail::ulong_type); FMT_FORMAT_AS(unsigned long, detail::ulong_type);
FMT_FORMAT_AS(Char*, const Char*);
FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>); FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
FMT_FORMAT_AS(std::nullptr_t, const void*); FMT_FORMAT_AS(std::nullptr_t, const void*);
FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>); FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);

View File

@ -2159,12 +2159,12 @@ TEST(format_test, test_formatters_enabled) {
check_enabled_formatters<char, bool, char, signed char, unsigned char, short, check_enabled_formatters<char, bool, char, signed char, unsigned char, short,
unsigned short, int, unsigned, long, unsigned long, unsigned short, int, unsigned, long, unsigned long,
long long, unsigned long long, float, double, long long, unsigned long long, float, double,
long double, void*, const void*, const char*, long double, void*, const void*, char*, const char*,
std::string, std::nullptr_t>(); std::string, std::nullptr_t>();
check_enabled_formatters<wchar_t, bool, wchar_t, signed char, unsigned char, check_enabled_formatters<wchar_t, bool, wchar_t, signed char, unsigned char,
short, unsigned short, int, unsigned, long, short, unsigned short, int, unsigned, long,
unsigned long, long long, unsigned long long, float, unsigned long, long long, unsigned long long, float,
double, long double, void*, const void*, double, long double, void*, const void*, wchar_t*,
const wchar_t*, std::wstring, std::nullptr_t>(); const wchar_t*, std::wstring, std::nullptr_t>();
} }