[Please do not mail me a copy of your followup] boost-users@lists.boost.org spake the secret code <20120505152720.GD12377@honecker.acc.umu.se> thusly:
On Fri, May 04, 2012 at 05:04:00PM +0000, Richard wrote:
static_cast
(p) where p is void* works perfectly fine. It is always valid to cast a void* to any other type and that's what static_cast<> does -- performs the cast when it is allowed by the rules of the language. Might it be C that allows arbitrary casts, but only guarantees proper semantics if the type is the correct one?
static_cast<> is purely a C++ construct and is not present in C. -- "The Direct3D Graphics Pipeline" -- DirectX 9 version available for download http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/ Legalize Adulthood! http://legalizeadulthood.wordpress.com