Hi,
I'm wondering if anyone has any tricks to determine the maximum instantiated value for a template function. For exampe, how would one modify the following code without changing main, to make MAXV a valid number:
Code:#include <stdio.h>
template<int V>
void test(){
printf("V: %d\n",V);
}
int main(){
test<2>();
test<6>();
test<2>();
test<3>();
printf("maxV: %d\n",MAXV);
return 0;
}
Thanks for the help!

