diff --git a/include/fmt/base.h b/include/fmt/base.h index e5773c87..261b849c 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -843,7 +843,7 @@ class basic_specs { fill_data_[i & 3] = static_cast(s[i]); } - FMT_CONSTEXPR void set_fill(const basic_specs& specs) { + FMT_CONSTEXPR void copy_fill_from(const basic_specs& specs) { set_fill_size(specs.fill_size()); for (size_t i = 0; i < max_fill_size; ++i) fill_data_[i] = specs.fill_data_[i]; diff --git a/include/fmt/format.h b/include/fmt/format.h index 95b5bad0..92a1d5b7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3968,7 +3968,7 @@ template struct nested_formatter { write(basic_appender(buf)); auto specs = format_specs(); specs.width = width_; - specs.set_fill(specs_); + specs.copy_fill_from(specs_); specs.set_align(specs_.align()); return detail::write( ctx.out(), basic_string_view(buf.data(), buf.size()), specs); diff --git a/include/fmt/std.h b/include/fmt/std.h index bb07fedc..54eb2c2a 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -696,7 +696,7 @@ template struct formatter, Char> { auto outer_specs = format_specs(); outer_specs.width = specs.width; - outer_specs.set_fill(specs); + outer_specs.copy_fill_from(specs); outer_specs.set_align(specs.align()); specs.width = 0;