Skip to content

Commit

Permalink
Check git actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoxor committed Mar 8, 2024
1 parent 0241552 commit 579cf30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/string_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ struct fmt::formatter<Date>
{
constexpr auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) { return ctx.begin(); }

template <typename FormatContext>
auto format(const Date& date, FormatContext& ctx) -> decltype(ctx.out())
auto format(const Date& date, format_context& ctx) const -> decltype(ctx.out())
{
return fmt::format_to(ctx.out(), "{}-{}-{}", date.year(), date.month(), date.day());
fmt::format_to(ctx.out(), "{}-{}-{}", date.year(), date.month(), date.day());
return ctx.out();
}
};

Expand Down
6 changes: 3 additions & 3 deletions tests/test_string_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ struct fmt::formatter<Date>
{
constexpr auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) { return ctx.begin(); }

template <typename FormatContext>
auto format(const Date& date, FormatContext& ctx) -> decltype(ctx.out())
auto format(const Date& date, format_context& ctx) const -> decltype(ctx.out())
{
return fmt::format_to(ctx.out(), "{}-{}-{}", date.year(), date.month(), date.day());
fmt::format_to(ctx.out(), "{}-{}-{}", date.year(), date.month(), date.day());
return ctx.out();
}
};

Expand Down

0 comments on commit 579cf30

Please sign in to comment.