Here is a test case showing a problem with partial specialization
template<typename T>
class Test {
public:
//! general case
template<typename X>
void F (complex<T> t, X x);
};
template<typename T>
template<typename X>
void Test<T>::F (complex<T> t, X x) {}
//! specialization
template<>
template<typename X>
void Test< complex<int> >::F (complex<int> t, X x) {}
Here is the output:
[...]
Searching for member function documentation...
/home/nbecker/bitexact/Test.H:16: Warning: no matching class member found for
void Test::F(complex< int > t, X x)
Possible candidates:
void F(complex< T > t, X x)
|