Commit 2b2444c 1 parent cd9b36d commit 2b2444c Copy full SHA for 2b2444c
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4218,12 +4218,18 @@ struct formatter<nested_view<T>> {
4218
4218
template <typename T>
4219
4219
struct nested_formatter {
4220
4220
private:
4221
- int width_;
4221
+ int width_ = 0 ;
4222
4222
detail::fill_t <char > fill_;
4223
4223
align_t align_ : 4 ;
4224
4224
formatter<T> formatter_;
4225
4225
4226
4226
public:
4227
+ // Using initialization list for 'align_' because default member initializers
4228
+ // for bit-fields are C++20
4229
+ constexpr nested_formatter () noexcept (
4230
+ std::is_nothrow_constructible<formatter<T>>::value)
4231
+ : align_(align_t ::none) {}
4232
+
4227
4233
FMT_CONSTEXPR auto parse (format_parse_context& ctx) -> const char* {
4228
4234
auto specs = detail::dynamic_format_specs<char >();
4229
4235
auto it = parse_format_specs (
You can’t perform that action at this time.
0 commit comments