Commit: fix casting problems

From: Dom Lachowicz (domlachowicz@yahoo.com)
Date: Wed Feb 05 2003 - 11:16:09 EST

  • Next message: Tim Silversides: "Patch - printing pages in reverse order"

    Someone changed a bunch of C casts to C++ casts last
    night, which caused a slew of warnings and errors, at
    least on Linux with GCC 3.2 and 2.95. I'm all in favor
    of C++ casts, but in the future, please use them
    correctly. static_cast is no panacea. Please remember
    our friends reinterpret_cast and const_cast as well,
    or at least remember that GCC doesn't like things
    like:

    void ** foo = static_cast<void **>(const char **)

    Fixes committed. No harm done.

    Dom

    __________________________________________________
    Do you Yahoo!?
    Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
    http://mailplus.yahoo.com



    This archive was generated by hypermail 2.1.4 : Wed Feb 05 2003 - 11:19:39 EST