我已经从opencv中分出来了,当我尝试修改一段专门化的模板化代码时,在我的命名空间中,我收到了错误:
make -k
[100%] Building CXX object object_detection.cpp.o
In file included from object_detection.cpp:1:0:
object_detection.h:370:75: error: specialization of 'void cv::Ptr<_Tp>::delete_obj() [with _Tp = CvHaarClassifierCascade]' in different namespace [-fpermissive]
object_detection.h:370:30: error: from definition of 'void cv::Ptr<_Tp>::delete_obj() [with _Tp = CvHaarClassifierCascade]' [-fpermissive]
据我所知,我不应该在不同的命名空间中专门化模板代码,但还有出路吗?
答案 0 :(得分:0)