Imported Upstream version 1.51.0
[platform/upstream/boost.git] / libs / spirit / phoenix / example / users_manual / algorithm.cpp
1 /*=============================================================================
2     Copyright (c) 2001-2007 Joel de Guzman
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 <iostream>
8 #include <boost/spirit/include/phoenix_core.hpp>
9 #include <boost/spirit/include/phoenix_algorithm.hpp>
10
11 using namespace boost::phoenix;
12 using namespace boost::phoenix::arg_names;
13
14 int
15 main()
16 {
17     int array[] = {1, 2, 3};
18     int output[3];
19     copy(arg1, arg2)(array, output);
20     return 0;
21 }