From 23ee2b94b5d08313949bc6c6db563ba36043514a Mon Sep 17 00:00:00 2001 From: Lukasz Czajczyk Date: Mon, 21 Jan 2019 16:50:00 -0600 Subject: [PATCH] Simplified boolean expression --- include/boost/static_assert.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index 07d461d..fd7b224 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -53,9 +53,9 @@ // #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))) # 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 -# define BOOST_STATIC_ASSERT_BOOL_CAST( x ) ((x) == 0 ? false : true) +# define BOOST_STATIC_ASSERT_BOOL_CAST( x ) ((x) != 0) # endif #else # ifndef BOOST_NO_CXX11_VARIADIC_MACROS