Zero-length arrays are an extension

This commit is contained in:
Peter Dimov
2017-12-12 00:05:18 +02:00
parent a96ae790a4
commit c273159c94
2 changed files with 1 additions and 9 deletions

View File

@@ -907,15 +907,11 @@ template<class... T, class F> BOOST_CONSTEXPR F mp_for_each_impl( mp_list<T...>,
return (void)A{ ((void)f(T()), 0)... }, std::forward<F>(f);
}
#if BOOST_WORKAROUND( BOOST_MSVC, <= 1800 )
template<class F> BOOST_CONSTEXPR F mp_for_each_impl( mp_list<>, F && f )
{
return std::forward<F>(f);
}
#endif
} // namespace detail
template<class L, class F> BOOST_CONSTEXPR F mp_for_each( F && f )