diff --git a/include/fmt/format.h b/include/fmt/format.h index 6c729a60..1c641559 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -41,13 +41,12 @@ #include "base.h" #ifndef FMT_MODULE -# include // std::signbit -# include // std::byte -# include // uint32_t -# include // std::memcpy -# include // std::initializer_list -# include // std::numeric_limits -# include // std::bad_alloc +# include // std::signbit +# include // std::byte +# include // uint32_t +# include // std::memcpy +# include // std::numeric_limits +# include // std::bad_alloc # if defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI) // Workaround for pre gcc 5 libstdc++. # include // std::allocator_traits @@ -3757,11 +3756,10 @@ template class format_facet : public Locale::facet { static FMT_API typename Locale::id id; explicit format_facet(Locale& loc); - explicit format_facet(string_view sep = "", - std::initializer_list g = {3}, + explicit format_facet(string_view sep = "", std::string grouping = "\3", std::string decimal_point = ".") : separator_(sep.data(), sep.size()), - grouping_(g.begin(), g.end()), + grouping_(grouping), decimal_point_(decimal_point) {} auto put(appender out, loc_value val, const format_specs& specs) const