mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-14 07:59:41 +08:00
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:
parent
7abd8a7e1f
commit
d962e37d43
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user