Skip to content

Commit ae22e63

Browse files
committed
fix format_to
1 parent bb95d15 commit ae22e63

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

benchmarks/gbench/mhp/fft3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct fmt::formatter<std::complex<Base>, char>
3131
: public formatter<string_view> {
3232
template <typename FmtContext>
3333
auto format(std::complex<Base> c, FmtContext &ctx) const {
34-
format_to(ctx.out(), "{}+{}i", c.real(), c.imag());
34+
fmt::format_to(ctx.out(), "{}+{}i", c.real(), c.imag());
3535
return ctx.out();
3636
}
3737
};

include/dr/detail/mdspan_utils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,14 @@ struct fmt::formatter<Mdspan, char> : public formatter<string_view> {
260260
index[dim] = i;
261261
if (dim == mdspan.rank() - 1) {
262262
if (i == 0) {
263-
format_to(ctx.out(), "{}: ", index);
263+
fmt::format_to(ctx.out(), "{}: ", index);
264264
}
265-
format_to(ctx.out(), "{:4} ", mdspan(index));
265+
fmt::format_to(ctx.out(), "{:4} ", mdspan(index));
266266
} else {
267267
format_mdspan(ctx, mdspan, index, dim + 1);
268268
}
269269
}
270-
format_to(ctx.out(), "\n");
270+
fmt::format_to(ctx.out(), "\n");
271271
}
272272
};
273273

include/dr/mhp/halo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ template <>
426426
struct fmt::formatter<dr::mhp::halo_bounds> : formatter<string_view> {
427427
template <typename FmtContext>
428428
auto format(dr::mhp::halo_bounds hb, FmtContext &ctx) {
429-
return format_to(ctx.out(), "prev: {} next: {}", hb.prev, hb.next);
429+
return fmt::format_to(ctx.out(), "prev: {} next: {}", hb.prev, hb.next);
430430
}
431431
};
432432

0 commit comments

Comments
 (0)