Ticket #6551: no_old_style_cast_in_macros.patch

File no_old_style_cast_in_macros.patch, 1.2 KB (added by andre.kwakernaak@…, 11 years ago)

patch to change old style casts to c++ casts in mpl/assert.hpp

  • boost/mpl/assert.hpp

     
    219219      std::size_t \
    220220    , BOOST_PP_CAT(mpl_assertion_in_line_,BOOST_MPL_AUX_PP_COUNTER()) = sizeof( \
    221221          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 ) \
    223223            ) \
    224224        ) \
    225225    ) \
     
    232232enum { \
    233233      BOOST_PP_CAT(mpl_assertion_in_line_,BOOST_MPL_AUX_PP_COUNTER()) = sizeof( \
    234234          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 ) \
    236236            ) \
    237237        ) \
    238238}\
     
    243243      std::size_t \
    244244    , BOOST_PP_CAT(mpl_assertion_in_line_,BOOST_MPL_AUX_PP_COUNTER()) = sizeof( \
    245245          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 ) \
    247247            ) \
    248248        ) \
    249249   ) \