mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
fix example as per rdar://problem/9461587
llvm-svn: 133012
This commit is contained in:
@@ -151,7 +151,7 @@ For example, given class Foo with member function fighter(void):
|
||||
...a Block that used foo would import the variables as const variations:
|
||||
const Foo block_foo = foo; // const copy constructor
|
||||
const Foo &block_fooRef = fooRef;
|
||||
const Foo *block_fooPtr = fooPtr;
|
||||
Foo *const block_fooPtr = fooPtr;
|
||||
|
||||
Stack-local objects are copied into a Block via a copy const constructor. If no such constructor exists, it is considered an error to reference such objects from within the Block compound statements. A destructor is run as control leaves the compound statement that contains the Block literal expression.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user