From 9f8806f797e679ec33dc81bbe88bb1f07016fcdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E8=8D=A3=E9=A3=9E?= Date: Sun, 16 Apr 2017 16:32:15 +0800 Subject: [PATCH] fmt::internal::is_streamable works on gcc 4.7 i test the the code on https://gcc.godbolt.org/, and only gcc 4.7 works, gcc 4.6 fail to complie --- fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 07d02098252d..a8b5c4795fbf 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -281,7 +281,7 @@ typedef __int64 intmax_t; // http://en.cppreference.com/w/cpp/compiler_support #define FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES \ (FMT_HAS_FEATURE(cxx_decltype_incomplete_return_types) || \ - (FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || \ + (FMT_GCC_VERSION >= 407 && FMT_HAS_GXX_CXX11) || \ FMT_MSC_VER >= 1900 || \ FMT_ICC_VERSION >= 1200)