The code below is working fine:
template<typename T, int n>
class Fib {};
template<typename T,int n>
class Fib<T*,n> {};
But the code below shows the error as:
Error: template parameters are not displayed in partial specialization:
template<typename T, int n>
class Fib {};
template<typename T,int n>
class Fib<T*,0> {};
Can you explain the reason for this behavior?
source
share