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

Fix incompatibility with some C++11 implementations

This commit is contained in:
Robbert Klarenbeek
2016-03-15 17:21:05 +01:00
parent 97d8ca3464
commit dd510e1de9
@@ -363,7 +363,7 @@ CV_EXPORTS void parallel_for_(const Range& range, const ParallelLoopBody& body,
template<typename _Tp, typename Functor> inline
void Mat::forEach_impl(const Functor& operation) {
if (false) {
operation(*reinterpret_cast<_Tp*>(0), reinterpret_cast<int*>(NULL));
operation(*reinterpret_cast<_Tp*>(0), reinterpret_cast<int*>(0));
// If your compiler fail in this line.
// Please check that your functor signature is
// (_Tp&, const int*) <- multidimential