Friday, March 1, 2013

template specialization


template<>
inline cv::Point2f CPanoramicCore<cv::Point2f>::Interpolate(double x,double y,int& flag)
{

}


template<>
void spec1<char, int>()
{

}

cannot be partially specialized!
but can use following:
 template <typename T1>
class class1<T1, int>
{

};

No comments:

Post a Comment