From 777185569383dfb0af97cdef479ad73e28267265 Mon Sep 17 00:00:00 2001 From: MohammadBadir Date: Sun, 21 Sep 2025 17:24:42 +0300 Subject: [PATCH] Add support for empty properties vector in commandNDRangeKernel --- include/CL/opencl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index ba4edafb..1c43c2ce 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -11930,7 +11930,7 @@ class CommandBufferKhr : public detail::Wrapper cl_int error = detail::errHandler( pfn_clCommandNDRangeKernelKHR(object_, (command_queue != nullptr) ? (*command_queue)() : nullptr, - &properties[0], + properties.empty() ? nullptr : properties.data(), kernel(), (cl_uint) global.dimensions(), offset.dimensions() != 0 ? (const size_type*) offset : nullptr,