fix: make nested_formatter constexpr default constructible

This commit is contained in:
Giel van Schijndel 2023-09-30 20:34:42 +02:00
parent 502f2b8949
commit 40524a3595

View File

@ -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(