copy.cpp 848 B

1234567891011121314151617181920212223242526
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <boost/detail/lightweight_test.hpp>
  7. #include <boost/fusion/container/vector/vector.hpp>
  8. #include <boost/fusion/container/list/list.hpp>
  9. #include <boost/fusion/sequence/comparison.hpp>
  10. #include <boost/fusion/algorithm/auxiliary/copy.hpp>
  11. int
  12. main()
  13. {
  14. {
  15. boost::fusion::vector<int, short, double> v(1, 2, 3);
  16. boost::fusion::list<int, short, double> l;
  17. boost::fusion::copy(v, l);
  18. BOOST_TEST(v == l);
  19. }
  20. return boost::report_errors();
  21. }