Greg Stein wrote:
Adding the cast just doesn't seem right. We implicitly cast void* to other
things all the time. Why does *this* one break things? I just don't buy the
need to do the cast.
Really... void* should be automatically castable to anything.
In C, yes. In C++, implicit casting from void* is not allowed. you need
a static_cast (or dynamic_cast, depending on context).
--
Brane Čibej
home: <[EMAIL PROTECTED]> http://www.xbc.nu/brane/
work: <[EMAIL PROTECTED]> http://www.hermes-softlab.com/
ACM: <[EMAIL PROTECTED]> http://www.acm.org/