Topic: Results: Compilers supporting newest template facilities


Author: Nicolas Rouquette <rouquett@aig.jpl.nasa.gov>
Date: 1997/09/08
Raw View
> I asked for info on which compilers support the following:
> - partial specialization of class templates
> - partial ordering of function templates
> - member templates
>
> Here's a summary of what I've found out:

> I have been unable to get information on the following compilers:
> - Green Hills Software.  They use the EDG front end, so I thought they
>   might support advanced template features.  I sent them email but have
>   received no response.

Member templates are supported in the Green Hills 1.8.8 C++ compiler.
I haven't tried the other two.

Note: GHS is currently at EDG 2.35 while EDG's latest is at 2.36.
IMHO, that's pretty good tracking if you have a support contract.
GHS uses the same front end on all of the platforms they support,
only the back end code generator changes.

> -----------------------------------------------------------------
> Kevin S. Van Horn            | ksvhsoft@xmission.com
> KSVH Software and Consulting | http://www.xmission.com/~ksvhsoft/
> ---------

Nicolas Rouquette, Ph.D.               Monitoring & Diagnosis Technology Group
Email: Nicolas.Rouquette@Jpl.Nasa.Gov  Jet Propulsion Laboratory, M/S 198-326
Phone: (818) 354-9600                  4800 Oak Grove Drive
  FAX: (818) 393-4440                  Pasadena, California 91109
  Web: http://www-aig.jpl.nasa.gov/home/rouquette/home.html
Disclaimer: Opinions expressed herein are my own and do not
            represent those of JPL, Caltech or NASA.
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: "Kevin S. Van Horn" <ksvhsoft@xmission.com>
Date: 1997/08/31
Raw View
I asked for info on which compilers support the following:
- partial specialization of class templates
- partial ordering of function templates
- member templates

Here's a summary of what I've found out:

- KAI C++: supports all three.  [www.kai.com]

- HP aC++: supports all three.  Also supports explicit function template
  arguments, e.g., things like writing random<int>() or
  object.template mf<int>().

- Comeau C++: Supports member templates.  Doesn't yet support partial
  specialization and partial ordering, but will "any day now".  (Of
  course, back in May they said they would have this stuff by June...)
  [www.comeaucomputing.com]

- SGI C++: Doesn't support any of the three yet, but the 7.2 compilers
  (n32 abi only) will support partial specialization and member
  templates; they are in beta now and will be available soon (October?).

- g++ (!).  Although the version distributed by the FSF has abysmally
  poor template support, there are some alternate lines of gcc/g++
  development that do have good template support.  The version
  distributed by Cygnus support has partial specialization and partial
  ordering.  There is a movement afoot -- the egcs project -- to
  integrate various such improvements and patches to gcc/g++; see
  http://www.cygnus.com/egcs/ for details.

- Portland Group pgCC: Supports member templates.  The person I
  contacted guessed that partial specialization and partial ordering
  would be available in 3 to 6 months. [www.pgroup.com]

- Apogee C++: Member templates, but no partial specialization or
  partial ordering. [www.apogee.com]

- Watcom C/C++: Doesn't support these yet, but a company rep
  claims they "are close to doing so."

It's worth noting that most of the compilers supporting advanced
template features use the EDG front end [www.edg.com].

I have been unable to get information on the following compilers:
- Green Hills Software.  They use the EDG front end, so I thought they
  might support advanced template features.  I sent them email but have
  received no response.
- SCO Unixware C++ compiler.  Also uses EDG front end, but they have
  not responded to my inquiries.

Also, I have been unable to find out when Borland and Microsoft plan
to add these advanced template features to their compilers.  If you
have any information on this, please drop me a note.

-----------------------------------------------------------------
Kevin S. Van Horn            | ksvhsoft@xmission.com
KSVH Software and Consulting | http://www.xmission.com/~ksvhsoft/
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]