mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-02 22:34:31 +02:00
Merge pull request #34 from Romain-Geissler-1A/ignore-gcc-8-warning
Ignore gcc 8 warnings.
This commit is contained in:
@@ -184,16 +184,27 @@ 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
|
||||||
|
#define BOOST_MPL_IGNORE_PARENTHESES_WARNING
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses"
|
||||||
|
#endif
|
||||||
|
|
||||||
template< typename Pred >
|
template< typename Pred >
|
||||||
failed ************ (Pred::************
|
failed ************ (Pred::************
|
||||||
assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type )
|
assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type )
|
||||||
);
|
);
|
||||||
|
|
||||||
template< typename Pred >
|
template< typename Pred >
|
||||||
failed ************ (boost::mpl::not_<Pred>::************
|
failed ************ (boost::mpl::not_<Pred>::************
|
||||||
assert_not_arg( void (*)(Pred), typename assert_arg_pred_not<Pred>::type )
|
assert_not_arg( void (*)(Pred), typename assert_arg_pred_not<Pred>::type )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#ifdef BOOST_MPL_IGNORE_PARENTHESES_WARNING
|
||||||
|
#undef BOOST_MPL_IGNORE_PARENTHESES_WARNING
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
template< typename Pred >
|
template< typename Pred >
|
||||||
AUX778076_ASSERT_ARG(assert<false>)
|
AUX778076_ASSERT_ARG(assert<false>)
|
||||||
assert_arg( void (*)(Pred), typename assert_arg_pred_not<Pred>::type );
|
assert_arg( void (*)(Pred), typename assert_arg_pred_not<Pred>::type );
|
||||||
|
Reference in New Issue
Block a user