|
Boost Users : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-08-15 16:36:05
"Peter Koch Larsen" <pkl_at_[hidden]> wrote in message
news:12321.62.79.147.244.1124140212.squirrel_at_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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net