You can cast a pointer to char* (+1 on such a pointer is shifted by one byte) or any other type of pointer if it suits you best.
However, this approach is highly error prone! Better check your design, something smells here! void* in 99% of cases are not needed in C ++, projects that use them are usually more "C" than "C ++". Remember that templates and inheritance should be the way to do this.
source share