Commit d962e37d by Paolo Carlini

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
parent 7abd8a7e
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.
......
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment