Ticket #9362: phoenix_non_const.cpp

File phoenix_non_const.cpp, 280 bytes (added by Andrey Semashev, 9 years ago)

A test case to reproduce the problem.

Line 
1#include <boost/ref.hpp>
2#include <boost/phoenix.hpp>
3
4struct my_func
5{
6 typedef void result_type;
7
8 void operator() (int& n)
9 {
10 ++n;
11 }
12};
13
14int main(int, char*[])
15{
16 int n = 0;
17
18 my_func f;
19 boost::phoenix::bind(f, boost::ref(n))();
20
21 return n;
22}