Should I use static_cast or reinterpret_cast when casting a void* to whatever

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2008-11-21T22:39:37Z Indexed on 2010/04/10 16:13 UTC
Read the original article Hit count: 269

Both static_cast and reinterpret_cast seem to work fine for casting void* to another pointer type. Is there a good reason to favor one over the other?

© Stack Overflow or respective owner

Related posts about c++

Related posts about pointers