cuda: fix build with CUDA 10.x
authorMansoo Kim <mansoo.kim@exem.ai>
Wed, 17 Oct 2018 17:35:40 +0000 (17:35 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 17 Oct 2018 17:35:40 +0000 (17:35 +0000)
modules/core/include/opencv2/core/types_c.h

index 9ee8c9d..d4216e0 100644 (file)
@@ -1353,7 +1353,7 @@ CvSlice;
 
 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 };
 #else
     CvSlice slice(start, end);