My original question was partially answered here
I still have to insist on one specific point. I try to specialize the following snippet with respect to U:
template <class T, Location L>
template <class U>
Type Buffer<T, L>::getType(){
return Type::INT;
}
After reading some threads, I come to the following statemets:
So there's absolutely no way to specialize with respect to U only, right?
I can NOT specialize a member without specializing the class, no matter whether I specialize with respect to a class template parameter (T, L) or the function template parameter (U), right?
Experienced programmers may think that the question was already answered many times, but as a beginner in templates I could not confirm these statements absolutely certain.