mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
David Chisnall: macro protect 'test' in __has_pointer_type_imp.
llvm-svn: 191126
This commit is contained in:
@@ -917,13 +917,13 @@ public:
|
||||
|
||||
namespace __has_pointer_type_imp
|
||||
{
|
||||
template <class _Up> static __two test(...);
|
||||
template <class _Up> static char test(typename _Up::pointer* = 0);
|
||||
template <class _Up> static __two __test(...);
|
||||
template <class _Up> static char __test(typename _Up::pointer* = 0);
|
||||
}
|
||||
|
||||
template <class _Tp>
|
||||
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>
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user