// Check for Bug5715 #include #include #include namespace test { int x = 0; void f() { ++x; } void g() { --x; } } int main() { ( boost::phoenix::bind(test::f), boost::phoenix::bind(test::g) )(); BOOST_TEST(test::x == 0); }