Overhaul the fusion::fold family to make SFINAE-friendly.

This commit is contained in:
Kohei Takahashi
2015-09-04 00:51:56 +09:00
parent efd595fd10
commit d3449ab5e5
12 changed files with 131 additions and 489 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

@ -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>