diff --git a/fmt/format.h b/fmt/format.h index a2a3b546..e6cd4a61 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -4090,7 +4090,8 @@ ArgJoin join(It first, It last, const BasicCStringRef& sep return ArgJoin(first, last, sep); } -#if FMT_HAS_GXX_CXX11 +#if FMT_HAS_GXX_CXX11 && \ + (!FMT_GCC_VERSION || FMT_GCC_VERSION >= 405 || __clang__) template auto join(const Range& range, const BasicCStringRef& sep) -> ArgJoin {