CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

    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.

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    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.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Feb 2005
    Location
    Normandy in France
    Posts
    4,590

    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()!

  4. #4
    Join Date
    Jan 2004
    Location
    Düsseldorf, Germany
    Posts
    2,401

    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.

  5. #5
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    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.

  6. #6
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443

    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".
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  7. #7
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured