Topic: template portability


Author: kanze@my-dejanews.com
Date: 1998/07/23
Raw View
In article <01bdb598$034ee340$794a5ed1@gcolvin-hpc>,
  "Greg Colvin" <spam@me.not> wrote:
> jkanze@otelo.ibmmail.com wrote in article
> <6p2gv2$q2s$1@nnrp1.dejanews.com>...
> > In article <xKtdmDA6k4s1EwLs@noco.demon.co.uk>,
> >   Mike Davies <mike_davies@noco.demon.co.uk> wrote:
> >
> > > New ? Templates have been in the Borland compiler (thats just the o=
ne I
> > > know) since 1994.
> >
> > And even today, it is extremely difficult to write a portable program
> that
> > uses templates.  As late as Nov., 1997, the committee was rewording t=
he
> > template chapter, because of problems.  Even today, I know of NO comp=
iler
> > which implements templates as they are described in the standard.
>
> Perhaps, but I've been using templates in portable code for at least as
> long as Mike Davies.  As ever, you have to be careful to stick with the
> stable subset, but that subset has always been large enough to be usefu=
l.

If you were using them in 1994, you also had to choose a subset of the
compilers to support.  At least two of the compilers I used then didn't
support them, and I suspect that there were others.

About a year and a half ago, one major customer of mine, using HP platfor=
ms,
was unable to upgrade to the new HP compiler because none of his template
code (written for the old one) would work correctly with it.

--
James Kanze    +33 (0)1 39 23 84 71    mailto: kanze@gabi-soft.fr
        +49 (0)69 66 45 33 10    mailto: jkanze@otelo.ibmmail.com
GABI Software, 22 rue Jacques-Lemercier, 78000 Versailles, France
Conseils en informatique orient=E9e objet --
              -- Beratung in objektorientierter Datenverarbeitung

-----=3D=3D Posted via Deja News, The Leader in Internet Discussion =3D=3D=
-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: "Greg Colvin" <spam@me.not>
Date: 1998/07/22
Raw View
jkanze@otelo.ibmmail.com wrote in article
<6p2gv2$q2s$1@nnrp1.dejanews.com>...
> In article <xKtdmDA6k4s1EwLs@noco.demon.co.uk>,
>   Mike Davies <mike_davies@noco.demon.co.uk> wrote:
>
> > New ? Templates have been in the Borland compiler (thats just the one I
> > know) since 1994.
>
> And even today, it is extremely difficult to write a portable program
that
> uses templates.  As late as Nov., 1997, the committee was rewording the
> template chapter, because of problems.  Even today, I know of NO compiler
> which implements templates as they are described in the standard.

Perhaps, but I've been using templates in portable code for at least as
long as Mike Davies.  As ever, you have to be careful to stick with the
stable subset, but that subset has always been large enough to be useful.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]