
15 Aug
2005
15 Aug
'05
9:36 p.m.
"Peter Koch Larsen" <pkl@mailme.dk> wrote in message news:12321.62.79.147.244.1124140212.squirrel@62.79.147.244...
Hi Thorsten
I must say that I agree with Kevin (and the gcc compiler) here. A C-style cast is not only a const cast; it is a everything-cast...
indeed.
if the only purpose is to cast away const, be clear and use a const cast. I can see no compelling reason (except laziness) not to.
well, I'm pretty lazy :-) I can't remember exactly why I did not use a const_cast...perhaps because the current cast was more portable. somehow. -Thorsten