Refactor handling of argument types

This commit is contained in:
Victor Zverovich
2022-06-09 17:03:33 -07:00
parent f61a1e8132
commit b135f1c014
3 changed files with 10 additions and 20 deletions
+2 -2
View File
@@ -337,8 +337,8 @@ template <typename T, typename Char>
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, format_arg_types<10>(), {}, next_arg_id);
auto ctx = compile_parse_context<Char>(str, max_value<int>(), nullptr, {},
next_arg_id);
auto f = formatter<T, Char>();
auto end = f.parse(ctx);
return {f, pos + fmt::detail::to_unsigned(end - str.data()) + 1,