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?

Edit
Report