Ticket #3074: fusion_vc10.patch

File fusion_vc10.patch, 6.8 KB (added by rwebb <richard.webb@…>, 13 years ago)
  • libs/fusion/test/sequence/cons.cpp

     
    2525main()
    2626{
    2727    using namespace boost::fusion;
     28    namespace bf = boost::fusion;
    2829    using boost::is_same;
    2930
    3031    std::cout << tuple_open('[');
     
    3940            make_cons(1, make_cons(hello));
    4041
    4142        BOOST_TEST((*begin(ns) == 1));
    42         BOOST_TEST((*next(begin(ns)) == hello));
     43        BOOST_TEST((*bf::next(begin(ns)) == hello));
    4344
    4445        *begin(ns) += 1;
    45         *next(begin(ns)) += ' ';
     46        *bf::next(begin(ns)) += ' ';
    4647
    4748        BOOST_TEST((*begin(ns) == 2));
    48         BOOST_TEST((*next(begin(ns)) == hello + ' '));
     49        BOOST_TEST((*bf::next(begin(ns)) == hello + ' '));
    4950
    5051        for_each(ns, boost::lambda::_1 += ' ');
    5152
    5253        BOOST_TEST((*begin(ns) == 2 + ' '));
    53         BOOST_TEST((*next(begin(ns)) == hello + ' ' + ' '));
     54        BOOST_TEST((*bf::next(begin(ns)) == hello + ' ' + ' '));
    5455    }
    5556
    5657    {
  • libs/fusion/test/sequence/iterator_range.cpp

     
    2828main()
    2929{
    3030    using namespace boost::fusion;
     31    namespace bf = boost::fusion;
    3132
    3233    std::cout << tuple_open('[');
    3334    std::cout << tuple_close(']');
     
    104105        BOOST_MPL_ASSERT((boost::is_same<result_of::value_of_data<result_of::next<result_of::begin<range_type>::type>::type>::type, char>));
    105106
    106107        std::cout << deref_data(begin(r)) << std::endl;
    107         std::cout << deref_data(next(begin(r))) << std::endl;
     108        std::cout << deref_data(bf::next(begin(r))) << std::endl;
    108109        BOOST_TEST((deref_data(begin(r)) == "foo"));
    109         BOOST_TEST((deref_data(next(begin(r))) == 'x'));
     110        BOOST_TEST((deref_data(bf::next(begin(r))) == 'x'));
    110111    }
    111112
    112113    return boost::report_errors();
  • libs/fusion/test/sequence/joint_view.cpp

     
    176176
    177177        std::cout << deref_data(begin(j)) << std::endl;
    178178        std::cout << deref_data(boost::fusion::next(begin(j))) << std::endl;
    179         std::cout << deref_data(next(boost::fusion::next(begin(j)))) << std::endl;
     179        std::cout << deref_data(boost::fusion::next(boost::fusion::next(begin(j)))) << std::endl;
    180180        BOOST_TEST((deref_data(begin(j)) == 0));
    181181        BOOST_TEST((deref_data(boost::fusion::next(begin(j))) == "foo"));
    182         BOOST_TEST((deref_data(next(boost::fusion::next(begin(j)))) == 1.3f));
     182        BOOST_TEST((deref_data(boost::fusion::next(boost::fusion::next(begin(j)))) == 1.3f));
    183183    }
    184184
    185185    return boost::report_errors();
  • libs/fusion/test/sequence/map.cpp

     
    2727main()
    2828{
    2929    using namespace boost::fusion;
     30    namespace bf = boost::fusion;
    3031    using namespace boost;
    3132    using namespace std;
    3233    using boost::fusion::pair;
     
    6667        BOOST_STATIC_ASSERT((!result_of::has_key<map_type, std::string>::value));
    6768
    6869        std::cout << deref_data(begin(m)) << std::endl;
    69         std::cout << deref_data(next(begin(m))) << std::endl;
     70        std::cout << deref_data(bf::next(begin(m))) << std::endl;
    7071
    7172        BOOST_TEST(deref_data(begin(m)) == 'X');
    72         BOOST_TEST(deref_data(next(begin(m))) == "Men");
     73        BOOST_TEST(deref_data(bf::next(begin(m))) == "Men");
    7374
    74         BOOST_STATIC_ASSERT((is_same<result_of::key_of<result_of::begin<map_type>::type>::type, int>::value));
    75         BOOST_STATIC_ASSERT((is_same<result_of::key_of<result_of::next<result_of::begin<map_type>::type>::type>::type, double>::value));
    76         BOOST_STATIC_ASSERT((is_same<result_of::value_of_data<result_of::begin<map_type>::type>::type, char>::value));
    77         BOOST_STATIC_ASSERT((is_same<result_of::value_of_data<result_of::next<result_of::begin<map_type>::type>::type>::type, std::string>::value));
     75        BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::begin<map_type>::type>::type, int>::value));
     76        BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::next<result_of::begin<map_type>::type>::type>::type, double>::value));
     77        BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::begin<map_type>::type>::type, char>::value));
     78        BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::next<result_of::begin<map_type>::type>::type>::type, std::string>::value));
    7879    }
    7980   
    8081    {
  • libs/fusion/test/sequence/set.cpp

     
    2727main()
    2828{
    2929    using namespace boost::fusion;
     30    namespace bf = boost::fusion;
    3031    using namespace boost;
    3132    using namespace std;
    3233    using boost::fusion::pair;
     
    6162        BOOST_STATIC_ASSERT((!result_of::has_key<set_type, double>::value));
    6263
    6364        std::cout << deref_data(begin(m)) << std::endl;
    64         std::cout << deref_data(next(begin(m))) << std::endl;
     65        std::cout << deref_data(bf::next(begin(m))) << std::endl;
    6566
    6667        BOOST_TEST(deref_data(begin(m)) == 123);
    67         BOOST_TEST(deref_data(next(begin(m))) == "Hola");
     68        BOOST_TEST(deref_data(bf::next(begin(m))) == "Hola");
    6869
    69         BOOST_STATIC_ASSERT((is_same<result_of::key_of<result_of::begin<set_type>::type>::type, int>::value));
    70         BOOST_STATIC_ASSERT((is_same<result_of::key_of<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value));
    71         BOOST_STATIC_ASSERT((is_same<result_of::value_of_data<result_of::begin<set_type>::type>::type, int>::value));
    72         BOOST_STATIC_ASSERT((is_same<result_of::value_of_data<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value));
     70        BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::begin<set_type>::type>::type, int>::value));
     71        BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value));
     72        BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::begin<set_type>::type>::type, int>::value));
     73        BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value));
    7374    }
    7475   
    7576    {