I have a function template declared as ff:
template <class T1, class T2> size_t find( const T1& col, const T2&
val, const ColFindEnum& dir ) ;
I wanted to specialize it for string,long as ff:
template<> //string, long specialization
size_t find( const std::string& col, long& val, const ColFindEnum& dir )
However, I get a compiler error:
error C2912: explicit specialization; 'size_t A::find(const std::string
&,long &,const Table::ColFindE num &)' is not a specialization of a
function template
Is it not possible to have a function template that has both template
arguments and arguments with "known types"?
template <class T1, class T2> size_t find( const T1& col, const T2&
val, const ColFindEnum& dir ) ;
I wanted to specialize it for string,long as ff:
template<> //string, long specialization
size_t find( const std::string& col, long& val, const ColFindEnum& dir )
However, I get a compiler error:
error C2912: explicit specialization; 'size_t A::find(const std::string
&,long &,const Table::ColFindE num &)' is not a specialization of a
function template
Is it not possible to have a function template that has both template
arguments and arguments with "known types"?
Comment