mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 03:57:36 +02:00
baking segmented Fusion
[SVN r73854]
This commit is contained in:
@ -54,9 +54,9 @@ main()
|
||||
std::cout << rev << std::endl;
|
||||
BOOST_TEST((rev == make_vector(s, 123456789, 'x', 123)));
|
||||
|
||||
typedef result_of::begin<view_type>::type first_type;
|
||||
typedef boost::fusion::result_of::begin<view_type>::type first_type;
|
||||
first_type first_it(begin(rev));
|
||||
typedef result_of::next<first_type>::type second_type;
|
||||
typedef boost::fusion::result_of::next<first_type>::type second_type;
|
||||
second_type second_it(next(first_it));
|
||||
BOOST_TEST((*second_it == 123456789));
|
||||
BOOST_TEST((*prior(second_it) == s));
|
||||
@ -69,16 +69,16 @@ main()
|
||||
BOOST_TEST((at_c<3>(rev)==123));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<result_of::value_at_c<view_type,0>::type,char const*>
|
||||
boost::is_same<boost::fusion::result_of::value_at_c<view_type,0>::type,char const*>
|
||||
));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<result_of::value_at_c<view_type,1>::type,long>
|
||||
boost::is_same<boost::fusion::result_of::value_at_c<view_type,1>::type,long>
|
||||
));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<result_of::value_at_c<view_type,2>::type,char>
|
||||
boost::is_same<boost::fusion::result_of::value_at_c<view_type,2>::type,char>
|
||||
));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<result_of::value_at_c<view_type,3>::type,int>
|
||||
boost::is_same<boost::fusion::result_of::value_at_c<view_type,3>::type,int>
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user