• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Copyright (c) 2014,2018 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/core/lightweight_test.hpp>
8 #include <boost/fusion/container/vector/vector.hpp>
9 #include <boost/fusion/container/list/list.hpp>
10 #include <boost/fusion/sequence/comparison.hpp>
11 #include <boost/fusion/algorithm/auxiliary/move.hpp>
12 #include <utility>
13 
main()14 int main()
15 {
16     {
17         boost::fusion::vector<int, short, double> v(1, 2, 3);
18         boost::fusion::list<int, short, double> l1 = v;
19         boost::fusion::list<int, short, double> l2;
20 
21         boost::fusion::move(std::move(v), l2);
22         BOOST_TEST(l1 == l2);
23     }
24 
25     return boost::report_errors();
26 }
27 
28