Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix updateMutableCommands template to use std::array::size() and const pointers #306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/CL/opencl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11876,14 +11876,14 @@ class CommandBufferKhr : public detail::Wrapper<cl_command_buffer_khr>
template <int ArrayLength>
cl_int updateMutableCommands(std::array<cl_command_buffer_update_type_khr,
ArrayLength> &config_types,
std::array<void *, ArrayLength> &configs) {
std::array<const void *, ArrayLength> &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 */
Expand Down
Loading