1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

cuda: fix build with CUDA 10.x

This commit is contained in:
Mansoo Kim
2018-10-17 17:35:40 +00:00
committed by Alexander Alekhin
parent 24ced3d657
commit 4d1f0ef2d9
+1 -1
View 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);