Skip to content

Commit

Permalink
disable use of stdext::checked_array_iterator for VS2019 and newer (K…
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug authored Oct 8, 2024
1 parent 6db44b8 commit 5d0123c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/CL/opencl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10299,15 +10299,15 @@ inline cl_int copy( const CommandQueue &queue, IteratorType startIterator, Itera
if( error != CL_SUCCESS ) {
return error;
}
#if defined(_MSC_VER)
#if defined(_MSC_VER) && _MSC_VER < 1920
std::copy(
startIterator,
endIterator,
startIterator,
endIterator,
stdext::checked_array_iterator<DataType*>(
pointer, length));
#else
std::copy(startIterator, endIterator, pointer);
#endif
#endif // defined(_MSC_VER) && _MSC_VER < 1920
Event endEvent;
error = queue.enqueueUnmapMemObject(buffer, pointer, 0, &endEvent);
// if exceptions enabled, enqueueUnmapMemObject will throw
Expand Down

0 comments on commit 5d0123c

Please sign in to comment.