[vlc-devel] [PATCH 1/2] ActiveX: fireOnMediaPlayerBufferingEvent/fireOnMediaPlayerTimeChangedEvent/fireOnMediaPlayerPositionChangedEvent small fix

Tristan Lanfrey tristan.lanfrey at gmail.com
Thu Nov 17 11:48:54 CET 2011

2011/11/17 Sergey Radionov <rsatom at gmail.com>

> But not, it has one more:
> "C cast" is closer to C++ dynamic_cast<>, then to static_cast<>. So it
> allow catch problems when static_cast's argument type changed to
> inconsistent with <destination type> (it will be compilation error), but "C
> cast" will not show even warning...


Maybe this should rather go on a C++ newsgroup/forum but I think a slight
correction is needed.

While it's true that static_cast<> is stricter than a c-style cast, and
therefore will produce more warnings/errors (one could say it is safer,
although one still has to know what they're doing), saying a c-style cast
is closer to a dynamic_cast<> than a static_cast<> is wrong.

A c-style cast has nothing dynamic in it, the cast happens at compile time.
There is no runtime check at all with c-style casts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111117/ec1bd07c/attachment.html>

More information about the vlc-devel mailing list