|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80391 - in trunk/libs/fusion/test: . sequence
From: joel_at_[hidden]
Date: 2012-09-04 01:04:27
Author: djowel
Date: 2012-09-04 01:04:25 EDT (Tue, 04 Sep 2012)
New Revision: 80391
URL: http://svn.boost.org/trac/boost/changeset/80391
Log:
C++11 fixes for deque
Text files modified:
trunk/libs/fusion/test/Jamfile | 6 ++++++
trunk/libs/fusion/test/sequence/construction.hpp | 2 +-
trunk/libs/fusion/test/sequence/iterator.hpp | 13 +++++++++++++
trunk/libs/fusion/test/sequence/tuple_construction.cpp | 2 +-
4 files changed, 21 insertions(+), 2 deletions(-)
Modified: trunk/libs/fusion/test/Jamfile
==============================================================================
--- trunk/libs/fusion/test/Jamfile (original)
+++ trunk/libs/fusion/test/Jamfile 2012-09-04 01:04:25 EDT (Tue, 04 Sep 2012)
@@ -8,6 +8,12 @@
# bring in rules for testing
import testing ;
+project
+ : requirements
+ <toolset>gcc:<cxxflags>-std=c++0x
+ <toolset>darwin:<cxxflags>-std=c++0x
+ ;
+
{
test-suite fusion :
Modified: trunk/libs/fusion/test/sequence/construction.hpp
==============================================================================
--- trunk/libs/fusion/test/sequence/construction.hpp (original)
+++ trunk/libs/fusion/test/sequence/construction.hpp 2012-09-04 01:04:25 EDT (Tue, 04 Sep 2012)
@@ -57,7 +57,7 @@
FUSION_SEQUENCE<> empty0;
-#ifndef TR1_TUPLE_TEST
+#ifndef NO_CONSTRUCT_FROM_NIL
FUSION_SEQUENCE<> empty1(empty);
#endif
Modified: trunk/libs/fusion/test/sequence/iterator.hpp
==============================================================================
--- trunk/libs/fusion/test/sequence/iterator.hpp (original)
+++ trunk/libs/fusion/test/sequence/iterator.hpp 2012-09-04 01:04:25 EDT (Tue, 04 Sep 2012)
@@ -29,7 +29,11 @@
char const* s = "Hello";
typedef FUSION_SEQUENCE<int, char, double, char const*> seq_type;
+#if !defined(BOOST_NO_RVALUE_REFERENCES)
+ seq_type v(1, 'x', 3.3, std::move(s));
+#else
seq_type v(1, 'x', 3.3, s);
+#endif
boost::fusion::result_of::begin<seq_type>::type i(v);
BOOST_TEST(*i == 1);
@@ -61,7 +65,12 @@
char const* s = "Hello";
typedef FUSION_SEQUENCE<int, char, double, char const*> const seq_type;
+#if !defined(BOOST_NO_RVALUE_REFERENCES)
+ seq_type t(1, 'x', 3.3, std::move(s));
+#else
seq_type t(1, 'x', 3.3, s);
+#endif
+
boost::fusion::result_of::begin<seq_type>::type i(t);
BOOST_TEST(*i == 1);
@@ -104,7 +113,11 @@
char const* s = "Hello";
typedef FUSION_SEQUENCE<int, char, double, char const*> seq_type;
+#if !defined(BOOST_NO_RVALUE_REFERENCES)
+ seq_type t(1, 'x', 3.3, std::move(s));
+#else
seq_type t(1, 'x', 3.3, s);
+#endif
boost::fusion::result_of::begin<seq_type>::type i(t);
BOOST_TEST(*i == 1);
Modified: trunk/libs/fusion/test/sequence/tuple_construction.cpp
==============================================================================
--- trunk/libs/fusion/test/sequence/tuple_construction.cpp (original)
+++ trunk/libs/fusion/test/sequence/tuple_construction.cpp 2012-09-04 01:04:25 EDT (Tue, 04 Sep 2012)
@@ -8,7 +8,7 @@
#include <boost/fusion/tuple/tuple.hpp>
#include <boost/fusion/adapted/mpl.hpp>
-#define TR1_TUPLE_TEST
+#define NO_CONSTRUCT_FROM_NIL
#define FUSION_SEQUENCE tuple
#define FUSION_AT get
#include "construction.hpp"
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