I have a function that returns a const void*
and I'd like to use its information as a char*
. I can cast it C-style fine as (char *)variable
but when I try to use reinterpret_cast
like reinterpret_cast<char *>(variable)
, I get a compilation error.
Should I use a different casting method?