Skip to content

Commit

Permalink
fix: make nested_formatter constexpr default constructible
Browse files Browse the repository at this point in the history
  • Loading branch information
muggenhor committed Oct 1, 2023
1 parent 502f2b8 commit 40524a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -4224,6 +4224,8 @@ struct nested_formatter {
formatter<T> formatter_;

public:
constexpr nested_formatter() : width_(0), align_(align_t::none) {}

FMT_CONSTEXPR auto parse(format_parse_context& ctx) -> const char* {
auto specs = detail::dynamic_format_specs<char>();
auto it = parse_format_specs(
Expand Down

0 comments on commit 40524a3

Please sign in to comment.