You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation example implies that there's format_parse_context::on_error method. But there doesn't seem to be so the below does not compile:
constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator {
/* ... */
if (it != end && *it != '}') ctx.on_error("invalid format");
/* ... */
}
The text was updated successfully, but these errors were encountered:
KubaO
changed the title
How to handle errors in custom formatter parse method>
How to handle errors in custom formatter parse method (doc bug)?
Jul 4, 2023
The documentation example implies that there's
format_parse_context::on_error
method. But there doesn't seem to be so the below does not compile:The text was updated successfully, but these errors were encountered: