1 | #ifdef USE_NEW_PHOENIX
|
---|
2 | #include <boost/phoenix/statement/sequence.hpp>
|
---|
3 | #include <boost/phoenix/bind.hpp>
|
---|
4 | #else
|
---|
5 | #include <boost/spirit/home/phoenix/statement/sequence.hpp>
|
---|
6 | #include <boost/spirit/home/phoenix/bind.hpp>
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | #include <iostream>
|
---|
10 |
|
---|
11 | void f() { std::cout << "f\n"; }
|
---|
12 | void g() { std::cout << "g\n"; }
|
---|
13 |
|
---|
14 | int main()
|
---|
15 | {
|
---|
16 | std::cout << "Phoenix version: " << std::hex << BOOST_PHOENIX_VERSION << "\n";
|
---|
17 |
|
---|
18 | (
|
---|
19 | boost::phoenix::bind(&f),
|
---|
20 | boost::phoenix::bind(&g)
|
---|
21 | )();
|
---|
22 | }
|
---|