functional (mem_fn): Avoid _T, badname on Darwin.
authorPaolo Carlini <paolo@gcc.gnu.org>
Thu, 24 Feb 2005 09:01:52 +0000 (09:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 24 Feb 2005 09:01:52 +0000 (09:01 +0000)
2005-02-24  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/functional (mem_fn): Avoid _T, badname on
Darwin.

From-SVN: r95492

libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/functional

index ae3e7e4..6257689 100644 (file)
@@ -1,4 +1,9 @@
-2005-02-23     Douglas Gregor <doug.gregor@gmail.com>
+2005-02-24  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/tr1/functional (mem_fn): Avoid _T, badname on
+       Darwin.
+
+2005-02-23  Douglas Gregor  <doug.gregor@gmail.com>
 
        * include/tr1/functional (function): New class template.
        (mem_fn): New function template.
index e8be445..1a958c3 100644 (file)
@@ -191,11 +191,11 @@ namespace tr1
    *  @brief Returns a function object that forwards to the member
    *  pointer @a pm.
    */
-  template<typename _T, typename _Class>
-    inline _Mem_fn<_T _Class::*>
-    mem_fn(_T _Class::* __pm)
+  template<typename _Tp, typename _Class>
+    inline _Mem_fn<_Tp _Class::*>
+    mem_fn(_Tp _Class::* __pm)
     {
-      return _Mem_fn<_T _Class::*>(__pm);
+      return _Mem_fn<_Tp _Class::*>(__pm);
     }
 
   /**