forked from boostorg/static_assert
Merge pull request #7 from LukeCz/patch-1
Simplified boolean expression
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user