Use BOOST_STATIC_ASSERT instead of BOOST_MPL_ASSERT (#78)

The MPL version is slower to compile and `BOOST_STATIC_ASSERT` is
already used in some places. So unify that.

This also fixes `Wzero-as-null-pointer-constant` warnings, see https://github.com/boostorg/mpl/pull/75
This commit is contained in:
Alexander Grund
2023-05-07 14:23:16 +02:00
committed by GitHub
parent 7c9b4296a1
commit e8fbd92a61
4 changed files with 17 additions and 18 deletions

View File

@ -147,7 +147,7 @@ struct iterator_with_proxy_reference
template <class T, class U>
void same_type(U const&)
{ BOOST_MPL_ASSERT((boost::is_same<T,U>)); }
{ BOOST_STATIC_ASSERT((boost::is_same<T,U>::value)); }
template <class I, class A>
struct abstract_iterator