C++0X Lambdas support in GCD

Originator:NocturnDragon
Number:rdar://9717147 Date Originated:03-Jul-2011 12:19 PM
Status:Open Resolved:
Product:Other Product Version:
Classification:Enhancement Reproducible:Not Applicable
 
Summary:
Currently GCD support two alternate ways to enqueue work, using Objective-C blocks and using functions.
Now that clang supports C++0X, it would be very handy to also have a third way using C++0X lambdas.

Comments

Coming soon, I think…

Incidentally, C++11 lambdas are in the Clang trunk now. Additionally, there seems to be automatic conversion of lambdas to blocks; see this test:

http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.prim/expr.prim.lambda/blocks.mm?view=markup&pathrev=151170

By jonsterling at March 15, 2012, 8:02 p.m. (reply...)

Clang doesn't support C++11 lambdas yet

Clang supports much of the C++0x spec, but it doesn't have lambdas yet. http://clang.llvm.org/cxx_status.html

By jonsterling at Jan. 12, 2012, 8:23 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!