/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2006 Dan Marsden 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 #include #include #include #include int main() { using namespace boost::fusion; { const vector2 shorter(1,2); const vector3 longer('a', 'b', 'c'); const vector2, vector2 > result(vector2(1,'a'), vector2(2,'b')); BOOST_TEST(zip(shorter, longer) == result); } { const vector3 longer(1,2,3); const vector2 shorter('a', 'b'); const vector2, vector2 > result(vector2(1,'a'), vector2(2,'b')); BOOST_TEST(zip(longer, shorter) == result); } return boost::report_errors(); }