KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How is it possible to create a recursive variadic template to print out the contents of a paramater pack? I am trying with this, but it fails to compile: template <typename First, typename ...Args> std::string type_name () { return std::string(typeid(First).name()) + " " + type_name<Args...>(); } std::string type_name () { return ""; } How shall I end the recursion?
Tags (comma-separated)
Save Edits
Cancel