i'm building a class with std::function for recive several parameters or none:
class event2
{
public:
typedef std::function<void(...)> OnSomethingHandler;
void operator() (...)
{
eventwithoutarg (...);
}
event & operator = (OnSomethingHandler Handler(...))
{
eventwithoutarg(...) = Handler(...);
return *this;
}
private:
OnSomethingHandler eventwithoutarg(...);
};
what i'm doing wrong with '...'?