Re: C++ templates

From: Robert Wilhelm (robert.wilhelm_at_gmx.net)
Date: Thu Mar 11 2004 - 14:37:41 EST

  • Next message: Marc Maurer: "Commit (BOTH): handle grayscale XPMs on win32"

     
    MSVC6 does templates quite well (as long as you do not use "advanced
    features" like partial specialisation of templates or member templates).
    Newer MSVC version or even more standard conforming.
    All other platforms will probably use some gcc port.
    With MSVC5 we might run into problems.
    Before we reinvent some templated container classes I strongly
    suggest to check whether we could use STL.

    Robert (who has to use MSVC6 at work)

    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?
    >
    > There is folklore that says MSVC doesn't do templates. I just want to be
    > sure before you launch into this.
    >
    > 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.
    >
    > Plus I'm sick of all those static casts from getNthItem(i)....
    >
    > Martin
    >
    > > If that is OK, then I'll templatize UT_Stack.
    > >
    > > Hub
    > >
    > >
    >



    This archive was generated by hypermail 2.1.4 : Thu Mar 11 2004 - 14:39:26 EST