Hi,
I'm using TI clang v2.1.2.LTS
I have a class CbADC_Device with a member function public: uint32 OpenSetCb(uint32_t){}
I'm trying to create a pointer to that funciton
#include <cstdint>
using FunctionPtrType = int32_t (CbADC_Device::*)(uint32_t);
FunctionPtrType funcPtr = &CbADC_Device::OpenSetCb;
void* ptr = (void*)(funcPtr); <==================================== ERROR
getting clang error
error: cannot initialize a variable of type 'void *' with an lvalue of type 'FunctionPtrType' (aka 'int32_t (CbADC_Device::*)(uint32_t)')
tried with reinterpret cast - also error
How can I get a void * ptr to the function ?
Please advice
Thanks,
Eli