-
March 4th, 2006, 04:50 AM
#1
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.
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold
My Blogs : Learning C++ is fun | Abnegator's reflections
Open Threads : C++ Aha! Moments | Nature of work in C++?
-
March 4th, 2006, 05:05 AM
#2
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.
-
March 4th, 2006, 05:20 AM
#3
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.
"inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
Club of lovers of the C++ typecasts cute syntax: Only recorded member.
Out of memory happens! Handle it properly!
Say no to g_new()!
-
March 4th, 2006, 10:49 AM
#4
Re: Compiler good at templates
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.
-
March 4th, 2006, 11:28 AM
#5
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.
-
March 4th, 2006, 11:32 AM
#6
Re: Compiler good at templates
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".
-
March 6th, 2006, 02:25 AM
#7
Re: Compiler good at templates
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold
My Blogs : Learning C++ is fun | Abnegator's reflections
Open Threads : C++ Aha! Moments | Nature of work in C++?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|