If we have a static_assert we should use it, even if there are no variadic macros.

This commit is contained in:
jzmaddock
2013-12-11 18:57:43 +00:00
parent d215ee5c9c
commit 4aab0b78c3

View File

@@ -30,7 +30,7 @@
# ifndef BOOST_NO_CXX11_VARIADIC_MACROS # ifndef BOOST_NO_CXX11_VARIADIC_MACROS
# define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__) # define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)
# else # else
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B ) # define BOOST_STATIC_ASSERT_MSG( B, Msg ) static_assert( B, Msg )
# endif # endif
#else #else
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B ) # define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )