Fix http://llvm.org/bugs/show_bug.cgi?id=11459. Patch supplied by Alberto Ganesh Barbati.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@145703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6d875f7f5
commit
e814a90f74
@ -741,6 +741,14 @@ struct _LIBCPP_VISIBLE is_base_of
|
|||||||
|
|
||||||
// is_empty
|
// is_empty
|
||||||
|
|
||||||
|
#if __has_feature(is_empty)
|
||||||
|
|
||||||
|
template <class _Tp>
|
||||||
|
struct _LIBCPP_VISIBLE is_empty
|
||||||
|
: public integral_constant<bool, __is_empty(_Tp)> {};
|
||||||
|
|
||||||
|
#else // __has_feature(is_empty)
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
struct __is_empty1
|
struct __is_empty1
|
||||||
: public _Tp
|
: public _Tp
|
||||||
@ -760,6 +768,8 @@ template <class _Tp> struct __libcpp_empty<_Tp, false> : public false_type {};
|
|||||||
|
|
||||||
template <class _Tp> struct _LIBCPP_VISIBLE is_empty : public __libcpp_empty<_Tp> {};
|
template <class _Tp> struct _LIBCPP_VISIBLE is_empty : public __libcpp_empty<_Tp> {};
|
||||||
|
|
||||||
|
#endif // __has_feature(is_empty)
|
||||||
|
|
||||||
// is_polymorphic
|
// is_polymorphic
|
||||||
|
|
||||||
template <class _Tp> struct __is_polymorphic1 : public _Tp {};
|
template <class _Tp> struct __is_polymorphic1 : public _Tp {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user