定义一个函数,比如
template<typename PointT>
vector<vector<float>> computeCornerStrengthFeature(vector<PointT> &pts);
在相同文件中使用,比如pts的PointT是cv::Point2f可以使用,在另外引用它的cpp文件中用到了它,类型是Point,就不可以使用,但是如果原始cpp文件中有用过,又没有问题!!
bug!!!
但是如果在其余文件中使用,不会自动生成该template对应的函数,会报错。