2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-14 13:02:10 +00:00
Files
phoenix/test/regression/bug5968.cpp
Thomas Heller 4e64b8eb1f - Forgot some changes for bug #5920
- Added testcase for bug #5968, works on gcc 4.6



[SVN r74833]
2011-10-09 00:55:08 +00:00

21 lines
429 B
C++

#include <boost/phoenix.hpp>
#include <boost/signals2.hpp>
struct s
{
bool f(int, bool) { return true; }
};
int main()
{
s s_obj;
boost::signals2::signal<bool (int, bool)> sig;
sig.connect(
boost::phoenix::bind(
&s::f, &s_obj,
boost::phoenix::placeholders::arg1,
boost::phoenix::placeholders::arg2));
}