ITK “InsertSort”: 找不到标识符 错误
说明: 该函数在 itkStatisticsAlgorithm.hxx 文件中,正常情况下InsertSort函数已经在 itkStatisticsAlgorithm.h 文件中声明,应该可以找到。但是在VS中出现该错误比较奇怪。
ITK 4.13中,该InsertSort函数的实现在itkStatisticsAlgorithm.hxx 中第538行,但其在533行(NthElement函数中)已经被调用。
解决:
修改 itkStatisticsAlgorithm.hxx 文件,将insort函数实现移到NthElement之前。
知道改原因出现根本原因的童鞋请不吝赐教。