C++ fixes

[SVN r82629]
This commit is contained in:
Joel de Guzman
2013-01-27 07:13:58 +00:00
parent 2f61e2b707
commit 6a47d86d72
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,8 @@
#include <boost/fusion/container/deque/convert.hpp>
#include <boost/fusion/adapted/mpl.hpp>
#define BOOST_FUSION_SEQUENCE_CONVERSION_IS_NOT_SEQUENCE__TYPE_PRESERVING
#define FUSION_SEQUENCE deque
#include "misc.hpp"

View File

@ -95,6 +95,7 @@ struct test_intrinsics2
{
typedef boost::fusion::FUSION_SEQUENCE<> seq0;
#if !defined(BOOST_FUSION_SEQUENCE_CONVERSION_IS_NOT_SEQUENCE__TYPE_PRESERVING)
#if !defined(FUSION_FORWARD_ONLY) // list has no back/prev
typedef boost::fusion::FUSION_SEQUENCE<int> target1;
@ -114,6 +115,8 @@ struct test_intrinsics2
typedef boost::fusion::FUSION_SEQUENCE<double, int> target4;
typedef boost::mpl::push_front<seq3, double>::type seq4;
BOOST_STATIC_ASSERT((boost::mpl::equal<seq4, target4>::value));
#endif
};
void