Re: static_cast in squid3

From: Evgeny Kotsuba <evgen__k@dont-contact.us>
Date: Fri, 08 Nov 2002 18:50:10 +0300

Hi,
On 08 Nov 2002 21:57:30 +1100
  Robert Collins <robertc@squid-cache.org> wrote:
>> Why use static_cast in squid3 ???
[...]
>> next it is
>> not supported on some compilers
>
>What compilers don't support it?
IBM VAC++ 3.08, gcc prior to 3.0

>> and last it is longer then pure
>> typecast.
>
>static_cast ensures that the typecast is safe, AFAIK a C-style cast
>doesn't check all the operators.
??????
Isn't the static_cast synonym to the type cast ?
Isn't the C-style cast one of two styles of C++'s cast exression with
the same functionality ?

>Also, note that static casts will be unneeded once we've fully
>converted
>the code to good C++ design.
I hope for that, but it is ipossible, as minimum with sorting
functions.

SY,
Evgeny Kotsuba
Received on Fri Nov 08 2002 - 08:50:19 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:18:38 MST