Add format_arg_types

This commit is contained in:
Victor Zverovich
2022-06-09 15:50:30 -07:00
parent 48b7e3dafb
commit f61a1e8132
2 changed files with 74 additions and 62 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
size_t pos, int next_arg_id) {
str.remove_prefix(pos);
auto ctx =
compile_parse_context<Char>(str, max_value<int>(), {}, next_arg_id);
compile_parse_context<Char>(str, format_arg_types<10>(), {}, next_arg_id);
auto f = formatter<T, Char>();
auto end = f.parse(ctx);
return {f, pos + fmt::detail::to_unsigned(end - str.data()) + 1,