diff --git a/include/fmt/core.h b/include/fmt/core.h index 72bbddad..8bcc0d06 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -950,8 +950,9 @@ template struct arg_mapper { FMT_ENABLE_IF(std::is_enum::value && !has_formatter::value && !has_fallback_formatter::value)> - FMT_CONSTEXPR auto map(const T& val) -> decltype( - map(static_cast::type>(val))) { + FMT_CONSTEXPR auto map(const T& val) + -> decltype(std::declval().map( + static_cast::type>(val))) { return map(static_cast::type>(val)); } template