mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
cuda: fix build with CUDA 10.x
This commit is contained in:
committed by
Alexander Alekhin
parent
24ced3d657
commit
4d1f0ef2d9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user