ename internal function test() to avoid name clashes with

common macros. This fixes ports like mysql 5.6 which has an
internal macro called test.

Approved by:	re (gjb)
Discussed with:	theraven
This commit is contained in:
Bernhard Froehlich 2013-10-06 10:12:11 +00:00
parent 505cdd82bf
commit ac64499012
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256082

View File

@ -965,13 +965,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>
{
};