I have a
template <int N> class Base
and
class Derived : public Base<1>
... is there a way to access the int N
from inside the definition of a Derived::myMethod()
(instead of getting the compiler error "use of undeclared identifier 'N'")?
More precisely, I would like to do
void Derived::myMethod() {
for (int n=0; n<N; n++) { ...