Bugfix for fmt::printf on Power9 architecture with the XL compiler

This commit is contained in:
Kenneth Weiss 2022-12-30 16:37:11 -08:00
parent 676c2a107e
commit 0a52742008

View File

@ -3583,6 +3583,10 @@ template <typename Char> struct arg_formatter {
const format_specs<Char>& specs;
locale_ref locale;
arg_formatter(buffer_appender<Char> it, const format_specs<Char>& s,
locale_ref l)
: out{it}, specs{s}, locale{l} {}
template <typename T>
FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
return detail::write(out, value, specs, locale);