我已经从 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]
我知道我不应该能够在不同的命名空间中专门化模板代码,但有出路吗?