This allows blocks to be used in more places, for example in std::optional.
rdar://problem/57892832
Differential D72708
[libc++] Make sure std::is_object returns true for block types ldionne on Jan 14 2020, 8:08 AM. Authored by
Details This allows blocks to be used in more places, for example in std::optional. rdar://problem/57892832
Diff Detail
Event Timeline
Comment Actions Thanks, this looks right, assuming you've decided to continue calling them "objc blocks" despite my comment. Comment Actions This LGTM too, but like John I would prefer a non-_OBJC_ name for the macro since -fblocks also gets used with C/C++.
|
Oh, and blocks are not strictly an Objective-C language extension; I understand that "blocks" is a highly generic term that you may not want to use alone, but calling them "ObjC blocks" may be misleading as well.