In the class there are a lot of methods with similar implementation, only method's name and argument-list different:
void function1 (int a, bool b)
{
mMember->function1(a, b);
}
void function2 (double a, string b)
{
mMember->function2(a, b);
}
It is required to replace all them with variadic macro. Something like this
#define MYMACRO(funcname, ...) void funcname (__VA_ARGS__) { mMember->funcname (__VA_ARGS__)}
but it is generated into such call
mMember->function1(int a, bool b)
And of course gives compilation errors.
How can parameters' values be got inside macro, so that to pass them into mMember->funcname
without types?
mMember->function1(a, b)