diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-03-10 22:20:11 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-03-10 22:20:11 +0000 |
commit | bccda480f424c001a14e0fb84910f20f31f5fcfb (patch) | |
tree | abcd3da9a0c62e6aa13359efa853edfcc4e04907 /docs/LanguageExtensions.html | |
parent | 1f1988fe75f27548459cabee2ea6162cbfd9add2 (diff) |
Clarify even further that the lambda-to-block-pointer conversion is only available in Objective-C++
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LanguageExtensions.html')
-rw-r--r-- | docs/LanguageExtensions.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index b5d57738ea..997d18489e 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -1078,6 +1078,10 @@ autoreleased: rather, it is given the same lifetime as a block literal written at that point in the program, which avoids the overhead of copying a block to the heap in the common case.</p> +<p>The conversion from a lambda to a block pointer is only available +in Objective-C++, and not in C++ with blocks, due to its use of +Objective-C memory management (autorelease).</p> + <!-- ======================================================================= --> <h2 id="overloading-in-c">Function Overloading in C</h2> <!-- ======================================================================= --> |