Imported Upstream version 1.49.0
[platform/upstream/boost.git] / libs / spirit / phoenix / example / users_manual / references.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
10 using namespace boost::phoenix;
11 using namespace boost::phoenix::arg_names;
12 using namespace std;
13
14 int
15 main()
16 {
17     int i = 3;
18     char const* s = "Hello World";
19     cout << ref(i)() << endl;
20     cout << ref(s)() << endl;
21     return 0;
22 }