mirror of
https://github.com/boostorg/mpl.git
synced 2025-07-31 13:27:32 +02:00
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:
@@ -184,7 +184,7 @@ template< typename P > struct assert_arg_pred_not
|
|||||||
typedef typename assert_arg_pred_impl<p>::type type;
|
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
|
#define BOOST_MPL_IGNORE_PARENTHESES_WARNING
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wparentheses"
|
#pragma GCC diagnostic ignored "-Wparentheses"
|
||||||
|
Reference in New Issue
Block a user