cuda: fix build with CUDA 10.x

pull/12832/head
Mansoo Kim 6 years ago committed by Alexander Alekhin
parent 24ced3d657
commit 4d1f0ef2d9
  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