Use static_assert more actively

This commit is contained in:
carterl
2015-02-15 03:55:21 +01:00
parent 0fc15d48f3
commit 43b9fefbd2
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -68,7 +68,8 @@
# define FMT_UNUSED
#endif
#if FMT_USE_STATIC_ASSERT
#if FMT_USE_STATIC_ASSERT || FMT_HAS_CPP_ATTRIBUTE(cxx_static_assert) || \
(FMT_GCC_VERSION >= 403 && __cplusplus >= 201103) || _MSC_VER >= 1600
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)
#else
# define FMT_CONCAT_(a, b) FMT_CONCAT(a, b)