D
desktop
I have this example:
template<class T> (1)
void f( T );
template<class T> (2)
void f( T* );
template<> (3)
void f<>(int*);
Which of (1) and (2) does (3) specialize, and why?
Is the order just a matter of when the specialization is declared?
template<class T> (1)
void f( T );
template<class T> (2)
void f( T* );
template<> (3)
void f<>(int*);
Which of (1) and (2) does (3) specialize, and why?
Is the order just a matter of when the specialization is declared?