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-03-10 15:20:45 -05:00
committed by Jim King
parent c61b1e3508
commit 4634ef904e

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"