A proposal to make it legal to mix reinterpret_cast<> with pointers to void

It's not well known, but in fact it's not actually legal to use reinterpret_cast<> with pointers to void in C++.

This is perhaps best regarded as a defect in the C++ Standard. Here's an additional paragraph to add to §5.2.10 that would fix this:


© Copyright 2009 Jonathan de Boyne Pollard. "Moral" rights asserted.
Permission is hereby granted to copy and to distribute this web page in its original, unmodified form as long as its last modification datestamp information is preserved.