]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/test/algorithm/move.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / test / algorithm / move.cpp
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 #include <boost/config.hpp>
8
9 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
10
11 #include <boost/core/lightweight_test.hpp>
12 #include <boost/fusion/container/vector/vector.hpp>
13 #include <boost/fusion/container/list/list.hpp>
14 #include <boost/fusion/sequence/comparison.hpp>
15 #include <boost/fusion/algorithm/auxiliary/move.hpp>
16 #include <utility>
17
18 int main()
19 {
20 {
21 boost::fusion::vector<int, short, double> v(1, 2, 3);
22 boost::fusion::list<int, short, double> l1 = v;
23 boost::fusion::list<int, short, double> l2;
24
25 boost::fusion::move(std::move(v), l2);
26 BOOST_TEST(l1 == l2);
27 }
28
29 return boost::report_errors();
30 }
31
32 #else
33
34 int main()
35 {
36 // no thing to do
37 }
38
39 #endif
40