RE: [boost] Infinite number of parameters?

2003-08-11 Thread Brock Peabody
A. Bouchard Sent: Monday, August 04, 2003 9:39 PM To: [EMAIL PROTECTED] Subject: [boost] Infinite number of parameters? Hello, Often some function and functors requires to be overloaded N times to handle undefinite number of arguments, depending on some default setting. Maybe the following

Re: [boost] Infinite number of parameters?

2003-08-05 Thread John Torjo
#include iostream using namespace std; namespace infinite { template typename T = void, typename U = void struct typelist : U { typedef T type; T value; typelist(T const a, U const b) : value(a), U(b) {} }; template struct typelistvoid, void { typedef void

[boost] Infinite number of parameters?

2003-08-04 Thread Philippe A. Bouchard
Hello, Often some function and functors requires to be overloaded N times to handle undefinite number of arguments, depending on some default setting. Maybe the following could be used; it overloads operator , () and gradually creates a typelist. This typelist is used to replace the