I have a function const void* getData()
which returns a pointer to constant data const void*
I need to write a wrapper to this function that gets an (output) argument in which it should return the above pointer.
void wrapGetData([type] ppData) {
*ppData = getData();
}
What should be the [type]
?
void ** is not sutable,since getData() returns pointer to the const