From 40524a3595924bba11af685a87e071b2a524e64b Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Sat, 30 Sep 2023 20:34:42 +0200 Subject: [PATCH] fix: make nested_formatter constexpr default constructible --- include/fmt/format.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 30addcb7..43333961 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4224,6 +4224,8 @@ struct nested_formatter { formatter 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(); auto it = parse_format_specs(