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/phoenix/core.hpp>
9 
10 int
main()11 main()
12 {
13     using boost::phoenix::arg_names::arg1;
14     using boost::phoenix::arg_names::arg2;
15 
16     int i = 3;
17     char const* s = "Hello World";
18     std::cout << arg1(i) << std::endl;        // prints 3
19     std::cout << arg2(i, s) << std::endl;     // prints "Hello World"
20     return 0;
21 }
22