multi-arguments function/macro

From: A. Saksena (abhishek.saksena_at_philips.com)
Date: 12/22/04


Date: Wed, 22 Dec 2004 09:51:34 +0100

Hi all,

Is it possible to write a function or a macro in C++, which is capable of
accepting any number of arguments.

To give an example, the following should be possible: -

connect(arg1,arg2);

connect(arg1,arg2,arg3);

connect(arg1,arg2,arg3,arg4);

connect(arg1,arg2,arg3,arg5,.);

I don't mind even if the upper limit to number of argument is fixed. But
definately I don't want overloaded functions.

Abhishek