diff --git a/include/fmt/base.h b/include/fmt/base.h index 0eab2feebf82..e39580849f99 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1487,8 +1487,14 @@ constexpr unsigned long long make_descriptor() { : is_unpacked_bit | NUM_ARGS; } -// This type is intentionally undefined, only used for errors -template struct type_is_unformattable_for; +// This type is intentionally undefined, only used for errors. +template +#if FMT_CLANG_VERSION && FMT_CLANG_VERSION <= 1500 +// https://github.com/fmtlib/fmt/issues/3796 +struct type_is_unformattable_for {}; +#else +struct type_is_unformattable_for; +#endif template FMT_CONSTEXPR auto make_arg(T& val) -> value {