Ticket #5715: func2.cc

File func2.cc, 494 bytes (added by Gennady Proskurin <gpr@…>, 11 years ago)
Line 
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
11void f() { std::cout << "f\n"; }
12void g() { std::cout << "g\n"; }
13
14int 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}