mirror of
https://github.com/fmtlib/fmt.git
synced 2025-03-12 07:13:29 +00:00
Diagnose unsupported code unit types
This commit is contained in:
parent
b3bf23f3c4
commit
72e883e163
@ -23,6 +23,10 @@ template <typename Char> class basic_printf_context {
|
||||
detail::buffer_appender<Char> out_;
|
||||
basic_format_args<basic_printf_context> args_;
|
||||
|
||||
static_assert(
|
||||
std::is_same<Char, char>::value || std::is_same<Char, wchar_t>::value,
|
||||
"Unsupported code unit type.");
|
||||
|
||||
public:
|
||||
using char_type = Char;
|
||||
using parse_context_type = basic_format_parse_context<Char>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user