check args on formatting

This commit is contained in:
dkavolis
2021-07-21 23:47:17 +01:00
parent 61ed2a670e
commit 1344d44a5a
3 changed files with 7 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ struct formatter<spdlog::details::dump_info<T>>
// parse the format string flags
template<typename ParseContext>
auto parse(ParseContext &ctx) -> decltype(ctx.begin())
FMT_CONSTEXPR auto parse(ParseContext &ctx) -> decltype(ctx.begin())
{
auto it = ctx.begin();
while (it != ctx.end() && *it != '}')