From c411c4b4796f1bd7540d6f257ebb180c673d33ed Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Sat, 26 Mar 2011 17:18:36 +0000 Subject: [PATCH] Spirit: merging from trunk (68457,68496,68522,68865,69218-69219,69294,69476,69546,70042-70043,70049-70050 68320,68374,68377,68386,68449,68461,68485,68487,68489,68491,68494-68495 68519-68520,68523,68536,68538-68539,68548-68549,68576,68645-68646,68657,68676 68687,68690,68707,68725,68744-68746,68852-68853,68861,68870,68904,68906-68908 68938,68989,69020,69022-69024,69091-69092,69103-69104,69114,69136,69138,69193 69202,69204,69233,69292-69293,69295,69297-69298,69323,69337,69378-69380,69405,69429,69431-69433,69444,69450 69495-69498,69501,69503,69505,69527,69599,69618,69623,69670-69671,69673,69675,69772-69774,69780 69811,69813-69814,69833,69851,70045,70211-70216,70224-70225,70483,70549-70550 Fusion: 69113,69118,69137,69583,69589,70008-70009) [SVN r70577] --- test/Jamfile | 3 ++- test/algorithm/copy.cpp | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 test/algorithm/copy.cpp diff --git a/test/Jamfile b/test/Jamfile index 4827bbaa..fe8829e6 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -14,6 +14,7 @@ import testing ; [ run algorithm/all.cpp : : : : ] [ run algorithm/any.cpp : : : : ] [ run algorithm/clear.cpp : : : : ] + [ run algorithm/copy.cpp : : : : ] [ run algorithm/count.cpp : : : : ] [ run algorithm/count_if.cpp : : : : ] [ run algorithm/erase.cpp : : : : ] @@ -111,7 +112,7 @@ import testing ; [ run sequence/zip_view2.cpp : : : : ] [ run sequence/zip_view_ignore.cpp : : : : ] [ run sequence/repetitive_view.cpp : : : : ] - [ run sequence/deduce_sequence.cpp : : : : ] + [ run sequence/deduce_sequence.cpp : : : : ] [ run sequence/adapt_adt_named.cpp : : : : ] [ run sequence/adapt_adt.cpp : : : : ] [ run sequence/adapt_assoc_adt_named.cpp : : : : ] diff --git a/test/algorithm/copy.cpp b/test/algorithm/copy.cpp new file mode 100644 index 00000000..330caca6 --- /dev/null +++ b/test/algorithm/copy.cpp @@ -0,0 +1,26 @@ +/*============================================================================= + Copyright (c) 2001-2011 Joel de Guzman + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +==============================================================================*/ +#include +#include +#include +#include +#include + +int +main() +{ + { + boost::fusion::vector v(1, 2, 3); + boost::fusion::list l; + + boost::fusion::copy(v, l); + BOOST_TEST(v == l); + } + + return boost::report_errors(); +} +