diff --git a/include/fmt/core.h b/include/fmt/core.h index d6142a01..4961310a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1786,7 +1786,7 @@ class format_arg_store basic_format_args(*this), #endif data_{detail::make_arg(args)...} { - if (num_named_args != 0) + if (detail::const_check(num_named_args != 0)) detail::init_named_args(data_.named_args(), 0, 0, args...); } };