Hi,
I might post a stupid question, but i prefer give it a shot, as i tried
several things without any success.
In a function called with a varying number of arguments of varying
types, could it be possible to pass all those arguments to another
function that takes a varying number of arguments (smart use of
va_list?).
A small example:
struct A
{
virtual void doStuff( int a, ... ) { /* do stuff here */ }
};
struct ClassB : public A
{
virtual void doStuff( int a, ... ) { A::doStuff( a /*, ... */ ); } //
<-- what do do here?
};
I first though of two things: assembly, that i'd love to avoid as i
need cross-platform support, and some template stuff, but i couldn t
get it working.
So are those kind of calls possible, and if so how?
Thanks,
David