Unfortunately, the template method inside the template class cannot be specialized solely on the basis of the template argument of the method.
You need to specialize the template class as well . In other words, the specialization of the member method should be a full specialization in the parameters of class template (i.e., <T,U> ), as well as the parameters of the template member (i.e., <size_t> ).
For example, you may need to specialize in this ( demo ):
template<> // <------ you have to specialize class also template<> inline void A<int, double>::BindValues<1>() // <-------- see A<T,U> { ... }
iammilind
source share