From 346500e70b95c0f879d78dc68cd3d54369cc8402 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 4 Apr 2020 11:23:36 -0700 Subject: [PATCH] Fix gcc version check --- include/fmt/core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 3480fb2f..6df2875a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1319,7 +1319,7 @@ using wformat_context = buffer_context; */ template class format_arg_store -#if FMT_GCC_VERSION < 409 +#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409 // Workaround a GCC template argument substitution bug. : public basic_format_args #endif @@ -1343,7 +1343,7 @@ class format_arg_store format_arg_store(const Args&... args) : -#if FMT_GCC_VERSION < 409 +#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409 basic_format_args(*this), #endif data_{internal::make_arg(args)...} { @@ -1376,7 +1376,7 @@ inline format_arg_store make_format_args( */ template class dynamic_format_arg_store -#if FMT_GCC_VERSION < 409 +#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409 // Workaround a GCC template argument substitution bug. : public basic_format_args #endif