Simplified boolean expression

This commit is contained in:
Lukasz Czajczyk
2019-01-21 16:50:00 -06:00
committed by GitHub
parent 488af9cf1b
commit 23ee2b94b5

View File

@ -53,9 +53,9 @@
// //
#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))) #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4)))
# ifndef BOOST_NO_CXX11_VARIADIC_MACROS # ifndef BOOST_NO_CXX11_VARIADIC_MACROS
# define BOOST_STATIC_ASSERT_BOOL_CAST( ... ) ((__VA_ARGS__) == 0 ? false : true) # define BOOST_STATIC_ASSERT_BOOL_CAST( ... ) ((__VA_ARGS__) != 0)
# else # else
# define BOOST_STATIC_ASSERT_BOOL_CAST( x ) ((x) == 0 ? false : true) # define BOOST_STATIC_ASSERT_BOOL_CAST( x ) ((x) != 0)
# endif # endif
#else #else
# ifndef BOOST_NO_CXX11_VARIADIC_MACROS # ifndef BOOST_NO_CXX11_VARIADIC_MACROS