Skip to content

Commit

Permalink
For fmt 11, use report_error
Browse files Browse the repository at this point in the history
throw_format_error was deprecated and removed in fmt 11.1:
fmtlib/fmt@9a2aae3

It was just a redirect to report_error, so use this one for fmt 11
  • Loading branch information
voyageur committed Dec 31, 2024
1 parent e13024d commit 1173721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/celutil/formatnum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct fmt::formatter<ExtendedSubstring>
if (it != ctx.end() && *it != '}')
{
#if FMT_VERSION >= 100100
throw_format_error("invalid format");
report_error("invalid format");
#else
assert(0);
return ctx.end();
Expand Down
2 changes: 1 addition & 1 deletion src/celutil/formatnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct fmt::formatter<celestia::util::FormattedFloat<T>>
if (it != ctx.end() && *it != '}')
{
#if FMT_VERSION >= 100100
throw_format_error("invalid format");
report_error("invalid format");
#else
assert(0);
return ctx.end();
Expand Down

0 comments on commit 1173721

Please sign in to comment.