In c/c++ we made pointer of function
__global__ void ckernel1(){
printf("hello1\n");
}
and then
__device__ void (*pck1)() = ckernel1;
But when i want to do the same with pointer to struct or class function :
struct x {
int data_member;
__device__ void f(){
printf("just another hello");
}
};
__device__ void (*me)() = &x::f;
the compiler said
error: a value of type "void (x::*)()" cannot be used to initialize an entity of type "void (*)()"