Fix -Wparentheses warning not ignored on NVCC

BOOST_GCC is not defined for NVCC, therefore we should use BOOST_GCC_VERSION.
This commit is contained in:
Anis Ladram
2022-05-01 08:47:52 -04:00
committed by Jim King
parent c61b1e3508
commit 4634ef904e
+1 -1
View File
@@ -184,7 +184,7 @@ template< typename P > struct assert_arg_pred_not
typedef typename assert_arg_pred_impl<p>::type type;
};
#if defined(BOOST_GCC) && BOOST_GCC >= 80000
#if defined(BOOST_GCC_VERSION) && BOOST_GCC_VERSION >= 80000
#define BOOST_MPL_IGNORE_PARENTHESES_WARNING
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wparentheses"