David Chisnall: macro protect 'test' in __has_pointer_type_imp.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@191126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd64f140d4
commit
8127758024
@ -917,13 +917,13 @@ public:
|
|||||||
|
|
||||||
namespace __has_pointer_type_imp
|
namespace __has_pointer_type_imp
|
||||||
{
|
{
|
||||||
template <class _Up> static __two test(...);
|
template <class _Up> static __two __test(...);
|
||||||
template <class _Up> static char test(typename _Up::pointer* = 0);
|
template <class _Up> static char __test(typename _Up::pointer* = 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
struct __has_pointer_type
|
struct __has_pointer_type
|
||||||
: public integral_constant<bool, sizeof(__has_pointer_type_imp::test<_Tp>(0)) == 1>
|
: public integral_constant<bool, sizeof(__has_pointer_type_imp::__test<_Tp>(0)) == 1>
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user