From: Kenshin on
Seems to me like the only way to write functions/classes taking
variadic templates is by recursion. Is that true? Can the below work,
for iteration?

template<class� T>
auto func(const T&� t){

std::initializer_list<?> ilist = {t�}; //what should go here <?>//
for(const auto& arg : ilist)
//use arg//
}


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

 | 
Pages: 1
Prev: Sequence Point
Next: Multiple inheritance