From bb845ccc51e9e096727f90d932b9f25483889b99 Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Wed, 26 Sep 2018 14:31:40 +0000 Subject: [PATCH] Fix FMT_EXPLICIT detection for GCC --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 4820219d..80113740 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -89,7 +89,8 @@ # endif #endif -#if FMT_HAS_FEATURE(cxx_explicit_conversions) || FMT_MSC_VER >= 1800 +#if FMT_HAS_FEATURE(cxx_explicit_conversions) || \ + FMT_GCC_VERSION >= 405 || FMT_MSC_VER >= 1800 # define FMT_EXPLICIT explicit #else # define FMT_EXPLICIT