Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit cd8e388205dab0c6cdfbd5884ca0f3127fe71ed5 1 parent 1a04bcf
Bernhard Fröhlich decke authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 contrib/libc++/include/memory
6 contrib/libc++/include/memory
View
@@ -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>
{
};
Please sign in to comment.
Something went wrong with that request. Please try again.