// Assert on types not allowed to be passed to a kernel
// (as per section 6.9 of the OpenCL spec).
- static_assert(!std::is_same<CurrentArg, bool>::value && !std::is_same<CurrentArg, size_t>::value
- && !std::is_same<CurrentArg, ptrdiff_t>::value
- && !std::is_same<CurrentArg, intptr_t>::value
- && !std::is_same<CurrentArg, uintptr_t>::value,
- "Invalid type passed to OpenCL kernel functions (see OpenCL spec section 6.9).");
+ static_assert(
+ !std::is_same_v<CurrentArg,
+ bool> && !std::is_same_v<CurrentArg, size_t> && !std::is_same_v<CurrentArg, ptrdiff_t> && !std::is_same_v<CurrentArg, intptr_t> && !std::is_same_v<CurrentArg, uintptr_t>,
+ "Invalid type passed to OpenCL kernel functions (see OpenCL spec section 6.9).");
prepareGpuKernelArgument(kernel, config, argIndex + 1, otherArgsPtrs...);
}