mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-19 23:32:17 +02:00
C++11 fixes for deque
[SVN r80391]
This commit is contained in:
@ -8,6 +8,12 @@
|
|||||||
# bring in rules for testing
|
# bring in rules for testing
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
|
project
|
||||||
|
: requirements
|
||||||
|
<toolset>gcc:<cxxflags>-std=c++0x
|
||||||
|
<toolset>darwin:<cxxflags>-std=c++0x
|
||||||
|
;
|
||||||
|
|
||||||
{
|
{
|
||||||
test-suite fusion :
|
test-suite fusion :
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ test()
|
|||||||
|
|
||||||
FUSION_SEQUENCE<> empty0;
|
FUSION_SEQUENCE<> empty0;
|
||||||
|
|
||||||
#ifndef TR1_TUPLE_TEST
|
#ifndef NO_CONSTRUCT_FROM_NIL
|
||||||
FUSION_SEQUENCE<> empty1(empty);
|
FUSION_SEQUENCE<> empty1(empty);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -29,7 +29,11 @@ void test()
|
|||||||
|
|
||||||
char const* s = "Hello";
|
char const* s = "Hello";
|
||||||
typedef FUSION_SEQUENCE<int, char, double, char const*> seq_type;
|
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);
|
seq_type v(1, 'x', 3.3, s);
|
||||||
|
#endif
|
||||||
boost::fusion::result_of::begin<seq_type>::type i(v);
|
boost::fusion::result_of::begin<seq_type>::type i(v);
|
||||||
|
|
||||||
BOOST_TEST(*i == 1);
|
BOOST_TEST(*i == 1);
|
||||||
@ -61,7 +65,12 @@ void test()
|
|||||||
|
|
||||||
char const* s = "Hello";
|
char const* s = "Hello";
|
||||||
typedef FUSION_SEQUENCE<int, char, double, char const*> const seq_type;
|
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);
|
seq_type t(1, 'x', 3.3, s);
|
||||||
|
#endif
|
||||||
|
|
||||||
boost::fusion::result_of::begin<seq_type>::type i(t);
|
boost::fusion::result_of::begin<seq_type>::type i(t);
|
||||||
|
|
||||||
BOOST_TEST(*i == 1);
|
BOOST_TEST(*i == 1);
|
||||||
@ -104,7 +113,11 @@ void test()
|
|||||||
|
|
||||||
char const* s = "Hello";
|
char const* s = "Hello";
|
||||||
typedef FUSION_SEQUENCE<int, char, double, char const*> seq_type;
|
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);
|
seq_type t(1, 'x', 3.3, s);
|
||||||
|
#endif
|
||||||
boost::fusion::result_of::begin<seq_type>::type i(t);
|
boost::fusion::result_of::begin<seq_type>::type i(t);
|
||||||
|
|
||||||
BOOST_TEST(*i == 1);
|
BOOST_TEST(*i == 1);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <boost/fusion/tuple/tuple.hpp>
|
#include <boost/fusion/tuple/tuple.hpp>
|
||||||
#include <boost/fusion/adapted/mpl.hpp>
|
#include <boost/fusion/adapted/mpl.hpp>
|
||||||
|
|
||||||
#define TR1_TUPLE_TEST
|
#define NO_CONSTRUCT_FROM_NIL
|
||||||
#define FUSION_SEQUENCE tuple
|
#define FUSION_SEQUENCE tuple
|
||||||
#define FUSION_AT get
|
#define FUSION_AT get
|
||||||
#include "construction.hpp"
|
#include "construction.hpp"
|
||||||
|
Reference in New Issue
Block a user