]> granicus.if.org Git - clang/commit
Lambda closure types have a conversion function to a block pointer
authorDouglas Gregor <dgregor@apple.com>
Wed, 15 Feb 2012 22:08:38 +0000 (22:08 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 15 Feb 2012 22:08:38 +0000 (22:08 +0000)
commitc2956e5681113bbcec5ff98833345166942a211b
tree51bb5ee8760a04157f980ca613bba0e6609fd0b1
parent4339bb3a71b6463415708553fda16aa7e44d07eb
Lambda closure types have a conversion function to a block pointer
with the same parameter types and return type as the function call
operator. This is the real answer to

  http://stackoverflow.com/questions/4148242/is-it-possible-to-convert-a-c0x-lambda-to-a-clang-block

:)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLambda.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp