/*============================================================================= Copyright (c) 2014 Kohei Takahashi Distributed under 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 // adapted/std_tuple.hpp only supports implementations using variadic templates #if defined(BOOST_NO_CXX11_HDR_TUPLE) || \ defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) # error "does not meet requirements" #endif #include #include #include #include #include #include #include int main() { using namespace boost::fusion; using namespace boost; { // conversion vector to std tuple std::tuple t = convert(make_vector(123, std::string("Hola!!!"))); BOOST_TEST(std::get<0>(t) == 123); BOOST_TEST(std::get<1>(t) == "Hola!!!"); } return boost::report_errors(); }