Fix compile-time width/precision type check

This commit is contained in:
Victor Zverovich
2022-08-09 16:10:02 -07:00
parent 8bd02e93b2
commit 7fb8d33f9d
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -2948,7 +2948,10 @@ class format_string_checker {
basic_string_view<Char> format_str, ErrorHandler eh)
: context_(format_str, num_args, types_, eh),
parse_funcs_{&parse_format_specs<Args, parse_context_type>...},
types_{type_constant<Args, char>::value...} {}
types_{
mapped_type_constant<Args,
basic_format_context<Char*, Char>>::value...} {
}
FMT_CONSTEXPR void on_text(const Char*, const Char*) {}