H
Hakan
Is static_cast<void*>( const_cast<char*>( p )) the correct construction for
casting a const char* p to a void* p?
TIA.
casting a const char* p to a void* p?
TIA.
Actually, you don't need the static_cast in most cases. Once you cast awayHakan said:Is static_cast<void*>( const_cast<char*>( p )) the correct construction for
casting a const char* p to a void* p?
Actually, you don't need the static_cast in most cases. Once you cast away
the const, the implicit conversion to void* will work.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.