Tuesday, March 1, 2011

What C++ compilers are supporting lambda already?

Are there C++ compilers already supporting C++0x lambda expressions?

From stackoverflow
  • Visual Studio 2010 CTP supports it already.

    Update: It is now Visual Studio 2010 Beta 2

    Robert Gould : 2010? Is that a joke or not?
    Johannes Schaub - litb : no it's not a joke. it supports it really
    Johannes Schaub - litb : you can checkout the gcc lambda branch and experiment. in #geordi at irc.freenode.org there is already a gcc bot running lambda-gcc.
    Johannes Schaub - litb : http://blogs.msdn.com/vcblog/archive/2008/10/28/lambdas-auto-and-static-assert-c-0x-features-in-vc10-part-1.aspx
    Robert Gould : +1 because it wasn't a joke. Thanks for the info.
    Laserallan : Microsoft has come a long way since VS 6 when it comes to compatibility and willingness to adopt c++ changes :)
  • g++ is underway.

    Maciej Piechotka : It was included some time ago.
  • Intel C++ Compiler does, e.g. according to TBB Tutorial.

  • G++ supports it in 4.5 if you enable it using -std=gnu++0x.

0 comments:

Post a Comment