From 4d1f0ef2d9a6f1c8df828c9d6528ba3b764868e4 Mon Sep 17 00:00:00 2001 From: Mansoo Kim Date: Wed, 17 Oct 2018 17:35:40 +0000 Subject: [PATCH] cuda: fix build with CUDA 10.x --- modules/core/include/opencv2/core/types_c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/types_c.h b/modules/core/include/opencv2/core/types_c.h index 9ee8c9d2b6..d4216e0df4 100644 --- a/modules/core/include/opencv2/core/types_c.h +++ b/modules/core/include/opencv2/core/types_c.h @@ -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);