Merge pull request #12832 from kmansoo:fix-compile-errors-on-nvcc10

pull/12875/head
Alexander Alekhin 6 years ago
commit 80c64fce11
  1. 2
      modules/core/include/opencv2/core/types_c.h

@ -1353,7 +1353,7 @@ CvSlice;
CV_INLINE CvSlice cvSlice( int start, int end ) CV_INLINE CvSlice cvSlice( int start, int end )
{ {
#if !(defined(CV__ENABLE_C_API_CTORS) && defined(__cplusplus)) #if !(defined(CV__ENABLE_C_API_CTORS) && defined(__cplusplus) && !defined(__CUDACC__))
CvSlice slice = { start, end }; CvSlice slice = { start, end };
#else #else
CvSlice slice(start, end); CvSlice slice(start, end);

Loading…
Cancel
Save