Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-07-10 12:31:06


Hi,

Is there a way that I can provide variable length template argument lists in
C++03 using boost? An example of what I want to achieve is below:

template< typename t1, typename t2, ..., typename tN >
void MyFunction( t1 param1, t2 param2, ..., tN paramN )
{
    boost::tuple<t1, t2, ..., tN> myTuple;
    AnotherFunction( param1, param2, ..., paramN );
}

Right now to do this I have to create several class specializations which
gets very nasty. Help is appreciated. Thanks.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net