From dd510e1de9725979c9564593584a0abd010c9286 Mon Sep 17 00:00:00 2001 From: Robbert Klarenbeek Date: Tue, 15 Mar 2016 17:21:05 +0100 Subject: [PATCH] Fix incompatibility with some C++11 implementations --- modules/core/include/opencv2/core/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/utility.hpp b/modules/core/include/opencv2/core/utility.hpp index 1e6249da8..60b2d3a06 100644 --- a/modules/core/include/opencv2/core/utility.hpp +++ b/modules/core/include/opencv2/core/utility.hpp @@ -363,7 +363,7 @@ CV_EXPORTS void parallel_for_(const Range& range, const ParallelLoopBody& body, template inline void Mat::forEach_impl(const Functor& operation) { if (false) { - operation(*reinterpret_cast<_Tp*>(0), reinterpret_cast(NULL)); + operation(*reinterpret_cast<_Tp*>(0), reinterpret_cast(0)); // If your compiler fail in this line. // Please check that your functor signature is // (_Tp&, const int*) <- multidimential