Skip to content

Commit

Permalink
Merge pull request #44 from denzor200/actualize_fmt
Browse files Browse the repository at this point in the history
Actualize examples to build with latest `fmt`
  • Loading branch information
pdimov authored Dec 13, 2023
2 parents e005f69 + 2e5dcc8 commit fad199e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/fmtlib_class_formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ template<class T> struct fmt::formatter<T, char, std::enable_if_t<

if( it != end && *it != '}' )
{
ctx.error_handler().on_error( "invalid format" );
throw_format_error( "invalid format" );
}

return it;
Expand Down
2 changes: 1 addition & 1 deletion example/fmtlib_enum_formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ template<class T> struct fmt::formatter<T, char, std::enable_if_t<

if( i1 != i2 )
{
ctx.error_handler().on_error( "invalid format" );
throw_format_error( "invalid format" );
}

return i1;
Expand Down

0 comments on commit fad199e

Please sign in to comment.