Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-07-12 12:31:04


David Abrahams wrote:
> Deane Yang <deane_yang_at_[hidden]> writes:
>
>> David Abrahams wrote:
>>>
>>> I also claim that most people get the relative safeness of
>>> static_cast and const_cast backwards ;-)
>>>
>> I'm biting on this one. Could you explain or provide a reference?
>
> http://lists.boost.org/boost/2004/09/12651.php

I think my point was that when you use const_cast, people reading your code
typically demand an explanation or just assume you're doing something fishy,
whereas when you use static cast people typically just verify that the cast is
correct and leave it at that.

Maybe it shouldn't be that way -- I gather that's your point -- but it is.

Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk