Simplify parse context

This commit is contained in:
Victor Zverovich
2022-12-24 15:20:24 -08:00
parent 407e7b7b6d
commit d1745084e0
5 changed files with 41 additions and 49 deletions
+2 -2
View File
@@ -3992,7 +3992,7 @@ template <> struct formatter<bytes> {
detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
detail::type::string_type);
auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
detail::check_string_type_spec(specs_.type, ctx.error_handler());
detail::check_string_type_spec(specs_.type, detail::error_handler());
return it;
}
@@ -4035,7 +4035,7 @@ template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
detail::type::int_type);
auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
detail::check_string_type_spec(specs_.type, ctx.error_handler());
detail::check_string_type_spec(specs_.type, detail::error_handler());
return it;
}