[libcxx-commits] [PATCH] D72708: [libc++] Make sure std::is_object returns true for block types
John McCall via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 14 09:55:12 PST 2020
rjmccall added inline comments.
================
Comment at: libcxx/include/type_traits:1046
+ is_class<_Tp>::value ||
+ __is_block<_Tp>::value > {};
----------------
The compiler considers blocks to be scalar types:
```
enum ScalarTypeKind {
STK_CPointer,
STK_BlockPointer,
STK_ObjCObjectPointer,
STK_MemberPointer,
STK_Bool,
STK_Integral,
STK_Floating,
STK_IntegralComplex,
STK_FloatingComplex,
STK_FixedPoint
};
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72708/new/
https://reviews.llvm.org/D72708
More information about the libcxx-commits
mailing list