[Bug libstdc++/24800] tr1::mem_fn returns a function object that does not inherit from std::unary_function/binary_function
doug dot gregor at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Nov 12 11:33:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list