mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Consistently use fmt::
when invoking format_to
. (#3779)
This has been done partially in previous commits: *2ac6c5ca8b
*258000064d
*ba50c19e82
*5ab9d39253
A patch that includes the `std::error_code` changes here is upstream in vcpkg, so that will be able to be removed when updating to the next release.
This commit is contained in:
@@ -587,9 +587,9 @@ template <class charT> struct formatter<std::complex<double>, charT> {
|
||||
fmt::runtime("{:" + specs + "}"), c.imag());
|
||||
auto fill_align_width = std::string();
|
||||
if (specs_.width > 0) fill_align_width = fmt::format(">{}", specs_.width);
|
||||
return format_to(ctx.out(), runtime("{:" + fill_align_width + "}"),
|
||||
c.real() != 0 ? fmt::format("({}+{}i)", real, imag)
|
||||
: fmt::format("{}i", imag));
|
||||
return fmt::format_to(ctx.out(), runtime("{:" + fill_align_width + "}"),
|
||||
c.real() != 0 ? fmt::format("({}+{}i)", real, imag)
|
||||
: fmt::format("{}i", imag));
|
||||
}
|
||||
};
|
||||
FMT_END_NAMESPACE
|
||||
|
Reference in New Issue
Block a user