I’m using boost::signals2 library and here is the simple code:
boost::signals2<void ()> sig;
class Foo {
void Slot() {}
};
Foo obj;
sig.connect( boost.bind(&Foo::Slot, &obj) );
Everything works well. But now I want my signal to pass some data in arguments:
boost::signals2<void (std::vector<float>)> sig2;
class Foo {
void Slot2(std::vector<float>) {}
};
What is the right way to bind Slot2 to signal again?
Here is the error: http://dpaste.com/752076/ when I use same connect&binding code.
You need to use a placeholder: