Fix static_assert feature detection on clang

This commit is contained in:
Dean Moldovan 2015-10-31 20:07:47 +01:00
parent ef5e5e02b4
commit 7d94b5bbeb

View File

@ -73,7 +73,7 @@
# define FMT_USE_STATIC_ASSERT 0 # define FMT_USE_STATIC_ASSERT 0
#endif #endif
#if FMT_USE_STATIC_ASSERT || FMT_HAS_CPP_ATTRIBUTE(cxx_static_assert) || \ #if FMT_USE_STATIC_ASSERT || FMT_HAS_FEATURE(cxx_static_assert) || \
(FMT_GCC_VERSION >= 403 && FMT_HAS_GXX_CXX11) || _MSC_VER >= 1600 (FMT_GCC_VERSION >= 403 && FMT_HAS_GXX_CXX11) || _MSC_VER >= 1600
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message) # define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)
#else #else