/*============================================================================= Copyright (c) 2003 Joel de Guzman Use, modification and distribution is subject to 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 #include #include #include #include #include #include #include #include #include int main() { using namespace boost::fusion; BOOST_MPL_ASSERT_RELATION((tuple_size >::value),==,2); BOOST_MPL_ASSERT((boost::is_same >::type, int>)); BOOST_MPL_ASSERT((boost::is_same >::type, float>)); std::pair pr(1, "hello"); BOOST_TEST(get<0>(pr) == 1); BOOST_TEST(get<1>(pr) == "hello"); get<0>(pr) = 2; get<1>(pr) = "world"; BOOST_TEST(get<0>(pr) == 2); BOOST_TEST(get<1>(pr) == "world"); const std::pair pr2(pr); BOOST_TEST(get<0>(pr2) == 2); BOOST_TEST(get<1>(pr2) == "world"); return boost::report_errors(); }