News for hackers. Stuff that matters.
Re:The Sorry State of C++ Portability by comex on Wednesday October 24, 2012 @03:38PM (#4694652)

    $ cat test.cpp
    int main() {
        return ([]() { return 5; })();
    }
    $ clang++ -std=c++11 -o test test.cpp
    $ 
Xcode 4.4.1.
Re:The Sorry State of C++ Portability by UnFleshedOne on Wednesday October 24, 2012 @04:29PM (#4694905)
Looks like lambdas are supported since 4.4, that's what I get on 4.3.2:

main.cpp:7:30: current parser token ')' main.cpp:5:1: parsing function body 'main' main.cpp:5:1: in compound statement ('{}') clang: error: unable to execute command: Segmentation fault: 11

Too bad we are now locked for next year or so. (and of course 4.4 doesn't support OSX 10.6, so no C++11 for us anyway...)

Re:The Sorry State of C++ Portability by comex on Wednesday October 24, 2012 @04:38PM (#4694955)
Eek. You can always install a newer compiler from MacPorts or whatever.