KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I wrote a function: template<int N> void tryHarder() { for(int i = 0; i < N; i++) { tryOnce(); } } but I only want it to compile if N is in between 0 and 10. Can I do it? How?
Tags (comma-separated)
Save Edits
Cancel