|
Boost Users : |
Subject: [Boost-users] variadic template function using fusion vector
From: noman javed (noman_bwp_at_[hidden])
Date: 2010-01-12 13:02:06
Hi
I want to write a function like that
template<class A, class T0, class T1, ..., class Tn>
execute(const A& a, T0& arg0, T1& arg&, .. , Tn& argn)
{
boost::fusion::vector<T0,...,Tn> vec(arg0, arg1, .., argn);
/* rest of the code */
}
Can anybody guide me how can I write this function without overloading it with different number of args?
Thanks in anticipation
Noman Javed
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