On Tue, Dec 11, 2001 at 04:23:00PM +0100, Jean-Marc Lasgouttes wrote: > Is it possible to do a reintepret_cast which would work always?
C-style casts are sometimes the bigger stick... > Something like > if (reinterpret_cast<void*>(mm) == reinterpret_cast<void*>(MAP_FAILED)) > or is C++ stupid enough to reject this when one type is already void*? No, you can reinterpret everything as itself. And it should even give a sensible result ;-) Andre' -- André Pönitz .............................................. [EMAIL PROTECTED]