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
#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
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