This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/24800] tr1::mem_fn returns a function object that does not inherit from std::unary_function/binary_function



------- Comment #4 from doug dot gregor at gmail dot com  2005-11-12 11:33 -------
This is not a bug. TR1 3.5 refers to member function pointers, not member data
pointers as in the submitted test case. mem_fn has no result_type for member
data pointers because the constness of the result type depends on the constness
of the argument type; use result_of to get the appropriate result type given
the argument type. See also TR1 DR 10.24 "Mem_fn result_type for pointer to
data member".


-- 

doug dot gregor at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doug dot gregor at gmail dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24800


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]