Itseez/opencv — pull request #18 by vrabaud (2012-08-23 12:23:00+00:00)
Title: fix a compile bug when applying norm() to a Matx

when applying norm() to a Matx, I got the following error (which the provided patch fixes) with gcc 4.7 on Ubuntu precise 64 bits:

/opt/ros/fuerte/include/opencv2/core/operations.hpp: In instantiation of ‘double cv::norm(const cv::Matx<_Tp, m, n>&, int) [with _Tp = double; int m = 3; int n = 3]’:
/home/vrabaud/workspace/libmv/src/libmv_opencv/src/fundamental.cpp:184:47: required from here
/opt/ros/fuerte/include/opencv2/core/operations.hpp:1082:79: error: dependent-name ‘cv::DataType<_Tp>::work_type’ is parsed as a non-type, but instantiation yields a type
/opt/ros/fuerte/include/opencv2/core/operations.hpp:1082:79: note: say ‘typename cv::DataType<_Tp>::work_type’ if a type is meant
/opt/ros/fuerte/include/opencv2/core/operations.hpp:1082:79: error: dependent-name ‘cv::DataType<_Tp>::work_type’ is parsed as a non-type, but instantiation yields a type
/opt/ros/fuerte/include/opencv2/core/operations.hpp:1082:79: note: say ‘typename cv::DataType<_Tp>::work_type’ if a type is meant
/opt/ros/fuerte/include/opencv2/core/operations.hpp:1082:79: error: dependent-name ‘cv::DataType<_Tp>::work_type’ is parsed as a non-type, but instantiation yields a type
/opt/ros/fuerte/include/opencv2/core/operations.hpp:1082:79: note: say ‘typename cv::DataType<_Tp>::work_type’ if a type is meant