functional (mem_fn): Avoid _T, badname on Darwin.

2005-02-24  Paolo Carlini  <pcarlini@suse.de>

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

From-SVN: r95492
This commit is contained in:
Paolo Carlini 2005-02-24 09:01:52 +00:00
parent 7abd8a7e1f
commit d962e37d43
2 changed files with 10 additions and 5 deletions

View 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.

View 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);
}
/**