c++/5089: -Wold-style-cast warns about cast to void
Nathan Sidwell
nathan@codesourcery.com
Sat Dec 29 08:06:00 GMT 2001
Jeffrey Turner wrote:
>
> I don't see this as a problem. It is what the warning says.
> You should use the ever dangerous <reinterpret_cast> instead.
reinterpret_cast<void>(whatever)
is invalid.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
More information about the Gcc-bugs
mailing list