bug5782.cpp 646 B

1234567891011121314151617181920212223
  1. /*=============================================================================
  2. Copyright (c) 2001-2007 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <boost/phoenix/bind/bind_function.hpp>
  7. #include <boost/phoenix/core/argument.hpp>
  8. #include <iostream>
  9. using namespace boost::phoenix;
  10. using namespace boost::phoenix::placeholders;
  11. void foo(int n)
  12. {
  13. std::cout << n << std::endl;
  14. }
  15. int main()
  16. {
  17. bind(&foo, arg1)(4);
  18. }