I have a templated class A in which I want to call a templated function from another class B
the header looks like :
template<typename... T> class A
{
public:
A();
void get(type_X params);
private:
B b_;
};
and the .hxx :
template<typename... T> void A<T...>::get(type_X params)
{
/*here lies my problem*/
T... variable; // just like we would do string s;
// and pass it to a function f(string& s) to assign it
b_.get(params, variable...);
/* do something with updated value of variable */
}
where member b_ (class B) has a templated function get which looks like
template<typename... T> int B<T...>::get(type_X params, const T&... variable)
{
/* change variable, just like we would assign a new value to a string& */
return 0;
}
And I have no idea how to initialize (if possible) my "T..." object to be given as argument to templated function B::get.
Thanks for your help