V
Virendra Verma
Hi all,
Is second definition a specialization of the first as per Stroustrup?
Visual C++ thinks it is not (error C2912 ). Thanks for help.
template< class T, class Cmp >
bool BinSearch( int& nMid, const T * pVec, int nSize, Cmp& cmp );
template<>
bool BinSearch( int& nMid, const char ** pVec, int nSize,
Comparator<const char *>& cmp );
Is second definition a specialization of the first as per Stroustrup?
Visual C++ thinks it is not (error C2912 ). Thanks for help.
template< class T, class Cmp >
bool BinSearch( int& nMid, const T * pVec, int nSize, Cmp& cmp );
template<>
bool BinSearch( int& nMid, const char ** pVec, int nSize,
Comparator<const char *>& cmp );