Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / phoenix / test / bind / bug5782.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 <boost/phoenix/bind/bind_function.hpp>
8 #include <boost/phoenix/core/argument.hpp>
9
10 #include <iostream>
11
12 using namespace boost::phoenix;
13 using namespace boost::phoenix::placeholders;
14
15 void foo(int n)
16 {
17     std::cout << n << std::endl;
18 }
19
20 int main()
21 {
22     bind(&foo, arg1)(4);
23 }