Commit d49f2061 authored by 郭荣飞's avatar 郭荣飞 Committed by Victor Zverovich

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
parent 7a4ac9ec
...@@ -281,7 +281,7 @@ typedef __int64 intmax_t; ...@@ -281,7 +281,7 @@ typedef __int64 intmax_t;
// http://en.cppreference.com/w/cpp/compiler_support // http://en.cppreference.com/w/cpp/compiler_support
#define FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES \ #define FMT_HAS_DECLTYPE_INCOMPLETE_RETURN_TYPES \
(FMT_HAS_FEATURE(cxx_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_MSC_VER >= 1900 || \
FMT_ICC_VERSION >= 1200) FMT_ICC_VERSION >= 1200)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment