I'm trying to create a pointer of template object using it's constructor:
int num = 10;
templateClass<int>* testPInt = new templateClass<num>;
When i compile the program:
error: the value of `num` is not usable in a constant expression
How do i solve that? i mean the experssion is not constant :/