]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/test/support/pair_container.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / test / support / pair_container.hpp
1 /*=============================================================================
2 Copyright (c) 2014 Kohei Takahashi
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7
8 #include <boost/core/ignore_unused.hpp>
9 #include <boost/fusion/support/pair.hpp>
10
11 using namespace boost::fusion;
12
13 template <typename C>
14 void copy()
15 {
16 pair<int, C> src;
17 pair<int, C> dest = src;
18 boost::ignore_unused(dest);
19 }
20
21 void test()
22 {
23 copy<FUSION_SEQUENCE<> >();
24 copy<FUSION_SEQUENCE<TEST_TYPE> >();
25 copy<FUSION_SEQUENCE<TEST_TYPE, TEST_TYPE> >();
26 }
27