]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/test/algorithm/move.cpp
1 /*=============================================================================
2 Copyright (c) 2014 Kohei Takahashi
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>
9 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
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>
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
;
25 boost::fusion::move(std::move(v
), l2
);
29 return boost::report_errors();