Connecting Tech Pros Worldwide Forums | Help | Site Map

Help on template specialization

Virendra Verma
Guest
 
Posts: n/a
#1: Jul 19 '05
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 );

Virendra Verma
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Help on template specialization


Thanks, Victor.
Closed Thread