Re: C++ templates

From: Hubert Figuiere (hfiguiere_at_teaser.fr)
Date: Thu Mar 11 2004 - 13:14:34 EST

  • Next message: Mike Nordell: "Re: C++ templates"

    On Thu, 2004-03-11 at 19:06, msevior_at_physics.unimelb.edu.au wrote:

    > Can an MSVC developer test a fraction of what you attempt first?

    I planned to send a patch so that at least other platform developpers
    can check it. Note: I'm not using libstdc++.

    > There is folklore that says MSVC doesn't do templates. I just want to be
    > sure before you launch into this.

    Back in 1997, when I was a Win32 developer, in a former life (yes, you
    can believe in reincarnation :-)), I did templates in a C++ project
    under MSVC5. It did choke sometime, but was OK. The biggest annoyance
    was BSOD when compiling, and failure that forced me to do a full
    rebuild.

    > But as a general point I really like the idea. C++ is a type-safe
    > language. It sucks that we spend so much effort deliberately not using
    > this feature because we cast to void * for vectors.

    That is one of the reasons.

    > Plus I'm sick of all those static casts from getNthItem(i)....

    Same. They won't go away 100% with the first patch, because I need to
    refactor hashes, etc.

    Hub



    This archive was generated by hypermail 2.1.4 : Thu Mar 11 2004 - 13:16:12 EST