From 80951d2e57660f3260ec1f7028ffd2314233d434 Mon Sep 17 00:00:00 2001 From: paolo Date: Thu, 24 Feb 2005 09:01:52 +0000 Subject: [PATCH] 2005-02-24 Paolo Carlini * include/tr1/functional (mem_fn): Avoid _T, badname on Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95492 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 7 ++++++- libstdc++-v3/include/tr1/functional | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ae3e7e4a0137..62576893e25f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,9 @@ -2005-02-23 Douglas Gregor +2005-02-24 Paolo Carlini + + * include/tr1/functional (mem_fn): Avoid _T, badname on + Darwin. + +2005-02-23 Douglas Gregor * include/tr1/functional (function): New class template. (mem_fn): New function template. diff --git a/libstdc++-v3/include/tr1/functional b/libstdc++-v3/include/tr1/functional index e8be4459598f..1a958c353916 100644 --- a/libstdc++-v3/include/tr1/functional +++ b/libstdc++-v3/include/tr1/functional @@ -191,11 +191,11 @@ namespace tr1 * @brief Returns a function object that forwards to the member * pointer @a pm. */ - template - inline _Mem_fn<_T _Class::*> - mem_fn(_T _Class::* __pm) + template + inline _Mem_fn<_Tp _Class::*> + mem_fn(_Tp _Class::* __pm) { - return _Mem_fn<_T _Class::*>(__pm); + return _Mem_fn<_Tp _Class::*>(__pm); } /** -- 2.47.3