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
This commit is contained in:
郭荣飞 2017-04-16 16:32:15 +08:00 committed by Victor Zverovich
parent 7a4ac9ec9c
commit d49f206183

View File

@ -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)