func A()
{
int a =10;
std::string b = "test";
cout<<"printing"<<a<<b<<endl;
}
func B()
{
unsigned long t = 6700;
cout<<t<<endl;
}
I understand that we can achieve it using variadic templates. But is it possible to do it without recursion? fold expression is not an option as only c++ 11 is supported. Please let me know if anyone else has better idea using variadic templates.
Aucun commentaire:
Enregistrer un commentaire