boostorg / mpl

Boost.org mpl module
http://boost.org/libs/mpl
Boost Software License 1.0
51 stars 78 forks source link

Avoid `Wzero-as-null-pointer-constant` warning #75

Closed Flamefire closed 1 year ago

Flamefire commented 1 year ago

Newer compilers may warn when using 0, e.g.:

./boost/iterator/detail/facade_iterator_category.hpp:161:5: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    BOOST_MPL_ASSERT_NOT((is_iterator_category<Traversal>));
    ^
./boost/mpl/assert.hpp:324:58: note: expanded from macro 'BOOST_MPL_ASSERT_NOT'
              boost::mpl::assert_not_arg( (void (*) pred)0, 1 ) \
Flamefire commented 1 year ago

Appveyor build failure seems to be a transient github error