mirror of
https://github.com/boostorg/phoenix.git
synced 2026-01-30 20:12:24 +00:00
18 lines
286 B
C++
18 lines
286 B
C++
#include <boost/phoenix/bind/bind_function.hpp>
|
|
#include <boost/phoenix/core/argument.hpp>
|
|
|
|
#include <iostream>
|
|
|
|
using namespace boost::phoenix;
|
|
using namespace boost::phoenix::placeholders;
|
|
|
|
void foo(int n)
|
|
{
|
|
std::cout << n << std::endl;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
bind(&foo, arg1)(4);
|
|
}
|