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 foo(int n)15void foo(int n) 16 { 17 std::cout << n << std::endl; 18 } 19 main()20int main() 21 { 22 bind(&foo, arg1)(4); 23 } 24