]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/test/algorithm/join.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / test / algorithm / join.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2006 Dan Marsden
4
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #include <boost/detail/lightweight_test.hpp>
9 #include <boost/fusion/algorithm/transformation/join.hpp>
10 #include <boost/fusion/container/generation/make_vector.hpp>
11 #include <boost/fusion/sequence/comparison/equal_to.hpp>
12 #include <boost/fusion/adapted/mpl.hpp>
13 #include <boost/mpl/vector/vector10_c.hpp>
14
15 int main()
16 {
17 using namespace boost::fusion;
18 {
19 BOOST_TEST(join(make_vector(1,2), make_vector('a','b')) == make_vector(1,2,'a','b'));
20 }
21 {
22 typedef boost::mpl::vector2_c<int,1,2> vec1;
23 typedef boost::mpl::vector2_c<int,3,4> vec2;
24 BOOST_TEST(join(vec1(), vec2()) == make_vector(1,2,3,4));
25
26 }
27 return boost::report_errors();
28 }