Merge pull request #228 from dean0x7d/fix_warning

Fix static_assert feature detection on clang
This commit is contained in:
Victor Zverovich
2015-11-12 12:38:27 -08:00

View File

@@ -73,7 +73,7 @@
# define FMT_USE_STATIC_ASSERT 0
#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
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)
#else