From 5243f98ed66ac55f6bc180377ffe8d926b678775 Mon Sep 17 00:00:00 2001 From: Banan Ashkar Date: Mon, 9 Sep 2024 14:26:18 +0300 Subject: [PATCH] Fix updateMutableCommands template to use std::array::size() and const pointers --- include/CL/opencl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index e3202cab..bf11c680 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -11876,14 +11876,14 @@ class CommandBufferKhr : public detail::Wrapper template cl_int updateMutableCommands(std::array &config_types, - std::array &configs) { + std::array &configs) { if (pfn_clUpdateMutableCommandsKHR == nullptr) { return detail::errHandler(CL_INVALID_OPERATION, __UPDATE_MUTABLE_COMMANDS_KHR_ERR); } return detail::errHandler( - pfn_clUpdateMutableCommandsKHR(object_, configs.length(), - config_types.data().configs.data()), + pfn_clUpdateMutableCommandsKHR(object_, configs.size(), + config_types.data(), configs.data()), __UPDATE_MUTABLE_COMMANDS_KHR_ERR); } #endif /* CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_VERSION */