1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Enabled forEach for const Mats

This commit is contained in:
Maksim Shabunin
2017-09-07 11:35:14 +03:00
parent 2ac57a2b1f
commit c92c99ed0b
2 changed files with 19 additions and 1 deletions
@@ -1214,7 +1214,7 @@ void Mat::forEach(const Functor& operation) {
template<typename _Tp, typename Functor> inline
void Mat::forEach(const Functor& operation) const {
// call as not const
(const_cast<Mat*>(this))->forEach<const _Tp>(operation);
(const_cast<Mat*>(this))->forEach<_Tp>(operation);
}
template<typename _Tp> inline