Ticket #6551: no_old_style_cast_in_macros.patch
File no_old_style_cast_in_macros.patch, 1.2 KB (added by , 11 years ago) |
---|
-
boost/mpl/assert.hpp
219 219 std::size_t \ 220 220 , BOOST_PP_CAT(mpl_assertion_in_line_,BOOST_MPL_AUX_PP_COUNTER()) = sizeof( \ 221 221 boost::mpl::assertion_failed<false>( \ 222 boost::mpl::assert_arg( (void (*) pred)0, 1 ) \222 boost::mpl::assert_arg( reinterpret_cast<void (*) pred>(0), 1 ) \ 223 223 ) \ 224 224 ) \ 225 225 ) \ … … 232 232 enum { \ 233 233 BOOST_PP_CAT(mpl_assertion_in_line_,BOOST_MPL_AUX_PP_COUNTER()) = sizeof( \ 234 234 boost::mpl::assertion<false>::failed( \ 235 boost::mpl::assert_not_arg( (void (*) pred)0, 1 ) \235 boost::mpl::assert_not_arg( reinterpret_cast<void (*) pred>(0), 1 ) \ 236 236 ) \ 237 237 ) \ 238 238 }\ … … 243 243 std::size_t \ 244 244 , BOOST_PP_CAT(mpl_assertion_in_line_,BOOST_MPL_AUX_PP_COUNTER()) = sizeof( \ 245 245 boost::mpl::assertion_failed<false>( \ 246 boost::mpl::assert_not_arg( (void (*) pred)0, 1 ) \246 boost::mpl::assert_not_arg( reinterpret_cast<void (*) pred>(0), 1 ) \ 247 247 ) \ 248 248 ) \ 249 249 ) \