Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Oct 2013 10:12:11 +0000 (UTC)
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256082 - head/contrib/libc++/include
Message-ID:  <201310061012.r96ACBH9057241@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: decke (ports committer)
Date: Sun Oct  6 10:12:11 2013
New Revision: 256082
URL: http://svnweb.freebsd.org/changeset/base/256082

Log:
  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

Modified:
  head/contrib/libc++/include/memory

Modified: head/contrib/libc++/include/memory
==============================================================================
--- head/contrib/libc++/include/memory	Sun Oct  6 09:55:28 2013	(r256081)
+++ head/contrib/libc++/include/memory	Sun Oct  6 10:12:11 2013	(r256082)
@@ -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>
 {
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310061012.r96ACBH9057241>