Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82629 - trunk/libs/fusion/test/sequence
From: joel_at_[hidden]
Date: 2013-01-27 02:13:59


Author: djowel
Date: 2013-01-27 02:13:58 EST (Sun, 27 Jan 2013)
New Revision: 82629
URL: http://svn.boost.org/trac/boost/changeset/82629

Log:
C++ fixes
Text files modified:
   trunk/libs/fusion/test/sequence/deque_misc.cpp | 4 +++-
   trunk/libs/fusion/test/sequence/misc.hpp | 3 +++
   2 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/libs/fusion/test/sequence/deque_misc.cpp
==============================================================================
--- trunk/libs/fusion/test/sequence/deque_misc.cpp (original)
+++ trunk/libs/fusion/test/sequence/deque_misc.cpp 2013-01-27 02:13:58 EST (Sun, 27 Jan 2013)
@@ -3,13 +3,15 @@
     Copyright (c) 2001-2011 Joel de Guzman
     Copyright (c) 2006 Dan Marsden
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 ==============================================================================*/
 #include <boost/fusion/container/deque/deque.hpp>
 #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"
 

Modified: trunk/libs/fusion/test/sequence/misc.hpp
==============================================================================
--- trunk/libs/fusion/test/sequence/misc.hpp (original)
+++ trunk/libs/fusion/test/sequence/misc.hpp 2013-01-27 02:13:58 EST (Sun, 27 Jan 2013)
@@ -95,6 +95,7 @@
 {
     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 @@
     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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk