Topic: Adwantages and drawbacks of templates
Author: maxtal@physics.su.OZ.AU (John Max Skaller)
Date: Wed, 7 Sep 1994 04:20:09 GMT Raw View
In article <346t6v$9pd@serveur.cribx1.u-bordeaux.fr> g5gdoux@frbdx11.cribx1.u-bordeaux.fr (Pascal DOUX G5G 56.34.82.48) writes:
>I am working on a big project where templates seems to be a good thing.
>But I'm not sure to find a C++ compiler for all the platforms I want develop my
>product for.
Yes you can, if you are prepared to accept limitation
to class templates. OSE/Makeit does its own template
processing if necessary and is a complete class library and
make system for Unix (the library works on a PC as well).
>
>Could someone tell me what are the advantages and drawbacks of using templates
>in C++ programming
A drawback is is the instability of the specification.
Another is that the design really shows up the nasty nature
of C++: there are some real nightmares, templates do not work
anywhere as well as they should.
But they are absolutely essential. If you dont
have and use templates, you aren't writing C++.
They're its best feature.
--
JOHN (MAX) SKALLER, INTERNET:maxtal@suphys.physics.su.oz.au
Maxtal Pty Ltd,
81A Glebe Point Rd, GLEBE Mem: SA IT/9/22,SC22/WG21
NSW 2037, AUSTRALIA Phone: 61-2-566-2189
Author: g5gdoux@frbdx11.cribx1.u-bordeaux.fr (Pascal DOUX G5G 56.34.82.48)
Date: 2 Sep 1994 10:02:07 GMT Raw View
I am working on a big project where templates seems to be a good thing.
But I'm not sure to find a C++ compiler for all the platforms I want develop my
product for.
Could someone tell me what are the advantages and drawbacks of using templates
in C++ programming
thans to answer by e-mail : fabien@g5g.fr