Merge pull request #102 from Flast/sfinae-friendly-fold

SFINAE-friendly fusion::fold
This commit is contained in:
Joel de Guzman
2015-10-16 06:32:12 +08:00
18 changed files with 161 additions and 504 deletions

View File

@ -238,7 +238,7 @@ main()
}
{
#if !defined(BOOST_FUSION_NO_DECLTYPE_BASED_RESULT_OF)
#if defined(BOOST_RESULT_OF_USE_DECLTYPE)
{
boost::fusion::vector<int, double, long> container{1, 2, 3};
functor f;

View File

@ -189,7 +189,7 @@ struct fold_test_n
>::type
, typename mpl::if_c<
!n
, mpl::vector<mpl::int_<1>, mpl::int_<0> > const&
, mpl::vector<mpl::int_<1>, mpl::int_<0> >&
, mpl::vector<mpl::int_<n+1>, mpl::int_<squares_sum> >
>::type
>

View File

@ -12,9 +12,9 @@
#include <boost/config.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/assert.hpp>
#include <boost/fusion/support/detail/result_of.hpp>
#include <boost/utility/result_of.hpp>
#if !defined(BOOST_NO_SFINAE) && !defined(BOOST_FUSION_NO_DECLTYPE_BASED_RESULT_OF)
#if !defined(BOOST_NO_SFINAE) && defined(BOOST_RESULT_OF_USE_DECLTYPE)
#include <boost/fusion/container/vector.hpp>