The following code does not compile, why is that? And how can I fix this?
struct A{ template int get() { return N; } }; template
you must disambiguate it, like so:
template<int N>int get() { return X::template get<N>(); }