Compiler good at templates
This is regarding the best or atleast one of the best compilers that are:
1. handling template metaprogramming very well
2. are free to download
I want to get one so that I could work with templates without having it in my mind that this compiler doesn't handle them well. I have VC++ 6.0 but we all know how good it is with templates. Thanks for your responses in advance. Best regards.
Re: Compiler good at templates
Have you tried the VC++ .NET 2003 compiler?
It can be freely downloaded from http://msdn.microsoft.com/visualc/vctoolkit2003/
I know it's much more standard conpliant than VC++ 6.0, however I don't know about template meta programming support.
Re: Compiler good at templates
GCC (under Win32, there is MinGW) is probably the best ISO compliant compiler I know.
It supports perfectly template metaprogramming, but also every feature of C++.
Digital Mars Compiler has a few bugs with templates.
Borland C++ 5.5.1 is good with templates but probably not as good as GCC.
So, for Win32, MinGW (which is based on a GCC compiler) is the best choice.
Re: Compiler good at templates
Quote:
Originally Posted by SuperKoko
GCC (under Win32, there is MinGW) is probably the best ISO compliant compiler I know.
It supports perfectly template metaprogramming, but also every feature of C++.
However, like almost any other compiler, gcc does not support the export keyword.
Re: Compiler good at templates
From what I've read MSVC7.1 (i.e. the compiler that comes with VCToolkit 2003) should be able to work correctly with templates. Still, if you want to go the Microsoft route, why not get MSVC8, which comes with MS Visual C++ 2005 Express?
If not, GCC (version 3 or 4) should do fine, including the MinGW port.
Re: Compiler good at templates
Quote:
Originally Posted by treuss
However, like almost any other compiler, gcc does not support the export keyword.
Which is not that bad, actually. You mostly won't need 'export' for template metaprogramming.
Herb Sutter has made some pertinent comments on 'export' -- you might want to read it if you come across "Exceptional C++ Style".
Re: Compiler good at templates