This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/24800] tr1::mem_fn returns a function object that does not inherit from std::unary_function/binary_function
- From: "doug dot gregor at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2005 11:33:17 -0000
- Subject: [Bug libstdc++/24800] tr1::mem_fn returns a function object that does not inherit from std::unary_function/binary_function
- References: <bug-24800-3433@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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