Connecting Tech Pros Worldwide Help | Site Map

Help on template specialization

  #1  
Old July 19th, 2005, 05:17 PM
Virendra Verma
Guest
 
Posts: n/a
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 );
  #2  
Old July 19th, 2005, 05:20 PM
Virendra Verma
Guest
 
Posts: n/a

re: Help on template specialization


Thanks, Victor.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
partial template specialization cpunerd@gmail.com answers 5 May 1st, 2007 03:25 PM
Compile Error: Template Specialization Example Nick answers 2 December 20th, 2006 07:15 PM
Problem on template specialization shuisheng answers 3 September 25th, 2006 02:55 AM
Template specialization for templated and primitive type template parameters case2005 answers 3 July 23rd, 2005 01:50 AM