OpenCL-CLHPP icon indicating copy to clipboard operation
OpenCL-CLHPP copied to clipboard

New MSVC warning in `cl::copy`

Open MathiasMagnus opened this issue 1 year ago • 0 comments

Previously MSVC threw a warning for using naked pointers with algorithms in Debug builds without using a vendor utility promising that the pointers are valid over a certain range. Latest VS deprecated this feature and now it issues a deprecation warning.

D:\Develop\GPGPU1\build\msbuild-msvc\_deps\opencl-sdk-src\external\OpenCL-CLHPP\include\CL\opencl.hpp(10031,50): warning C4996: 'stdext::checked_array_iterator<DataType *>::checked_array_iterator': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning. [D:\Develop\GPGPU1\build\msbuild-msvc\OpenCL\C++-API\SAXPY\OpenCL-Cpp-SAXPY.vcxproj]

MathiasMagnus avatar May 14 '24 17:05 MathiasMagnus