how can i build a typedef with variadic operator?
what i mean is that i need build these:
typedef std::function<void(void)> Event;//works fine, but for any parameters
typedef std::function<void(...)> Event; //no errors
Event test(int x, int y)=[](int x, int y)
{
int a=x+y;
string b=tostring(a);
MessageBox(NULL,b.c_str(),"hello",MB_OK);
};
in these sample i get 1 error:
"invalid pure specifier (only '= 0' is allowed) before ']' token"
how can i fix the error?