1 /*=============================================================================
2 Copyright (c) 2001-2007 Joel de Guzman
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 ==============================================================================*/
14 #include <boost/detail/lightweight_test.hpp>
15 #include <boost/spirit/include/phoenix_core.hpp>
16 #include <boost/spirit/include/phoenix_operator.hpp>
18 #include <boost/fusion/include/io.hpp>
20 using namespace boost::phoenix;
21 using namespace boost::phoenix::arg_names;
28 string hello = "hello";
29 const char* world = " world";
31 int init[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
32 vector<int> v(init, init+10);
34 char const* msg = "cout assert\n";
36 (cout << arg1 << endl)(hello);
38 (cout << val(hello))();
40 (cout << val(hello) << world << ", you da man!\n")();
41 for_each(v.begin(), v.end(), cout << arg1 << ',');
42 (cout << arg1 + 1)(i100);
44 (cout << arg1 << "this is it, shukz:" << hex << arg2 << endl << endl)(msg, i100);
51 BOOST_TEST(in == out);
53 return boost::report_errors();