diff --git a/include/fmt/core.h b/include/fmt/core.h index 18c9ae6c..4d83df79 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1440,6 +1440,7 @@ template struct arg_mapper { FMT_ENABLE_IF(std::is_enum::value&& std::is_integral::value)> FMT_CONSTEXPR FMT_INLINE auto map(const T& val) -> decltype(std::declval().map(U())) { + static_assert(!has_formatter::value, ""); return map(format_as(val)); }