From d962e37d43ae054bc723d1940f77118eeb168ac3 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 24 Feb 2005 09:01:52 +0000 Subject: [PATCH] functional (mem_fn): Avoid _T, badname on Darwin. 2005-02-24 Paolo Carlini * include/tr1/functional (mem_fn): Avoid _T, badname on Darwin. From-SVN: r95492 --- 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 ae3e7e4a013..62576893e25 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 e8be4459598..1a958c35391 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); } /**