Prev: Sequence Point
Next: Multiple inheritance
From: Kenshin on 9 Dec 2009 05:54 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 |