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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user