Skip to content

Commit 40524a3

Browse files
committed
fix: make nested_formatter constexpr default constructible
1 parent 502f2b8 commit 40524a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/fmt/format.h

+2
Original file line numberDiff line numberDiff line change
@@ -4224,6 +4224,8 @@ struct nested_formatter {
42244224
formatter<T> formatter_;
42254225

42264226
public:
4227+
constexpr nested_formatter() : width_(0), align_(align_t::none) {}
4228+
42274229
FMT_CONSTEXPR auto parse(format_parse_context& ctx) -> const char* {
42284230
auto specs = detail::dynamic_format_specs<char>();
42294231
auto it = parse_format_specs(

0 commit comments

Comments
 (0)