Merge pull request #12832 from kmansoo:fix-compile-errors-on-nvcc10

This commit is contained in:
Alexander Alekhin 2018-10-18 07:51:47 +00:00
commit 80c64fce11

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);