Hi,
I'm getting a error: call to 'forward' is ambiguous when trying to compile a kernel that forwards variadic arguments
template<typename... T>
void func2(T&&... t){
}
kernel void test(
__write_only image2d_t dst_img,
__read_only image3d_t src_img
)
{
// call to forward is ambigous
auto lambda = [](auto&&... arg) {
func2(forward<decltype(arg)>(arg)...);
};
lambda(dst_img,src_img);
}
godbolt example here
It works in regular C++, but I think address spaces might be confusing it here in OpenCL.