1
0
forked from boostorg/mp11

Change back mp_for_each to not use mp_identity

This commit is contained in:
Peter Dimov
2017-05-29 03:04:12 +03:00
parent 75f7f442fa
commit c7923ca041
4 changed files with 7 additions and 9 deletions

View File

@@ -882,7 +882,7 @@ namespace detail
template<class... T, class F> BOOST_CONSTEXPR F mp_for_each_impl( mp_list<T...>, F && f )
{
using A = int[sizeof...(T)];
return (void)A{ ((void)f(mp_identity<T>()), 0)... }, std::forward<F>(f);
return (void)A{ ((void)f(T()), 0)... }, std::forward<F>(f);
}
#if BOOST_WORKAROUND( BOOST_MSVC, <= 1800 )