This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/39136] std::mem_fun_ref fails to accept a member function whose second argument with default value
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2009 16:47:15 -0000
- Subject: [Bug libstdc++/39136] std::mem_fun_ref fails to accept a member function whose second argument with default value
- References: <bug-39136-3227@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from paolo dot carlini at oracle dot com 2009-02-09 16:47 -------
Your snippet boils down to this, which is clearly invalid:
struct vector
{
void resize(long unsigned int, int = 0);
};
template<typename _Ret, typename _Tp, typename _Arg>
void
mem_fun_ref(_Ret (_Tp::*__f)(_Arg));
void
test() {
mem_fun_ref(&vector::resize);
}
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39136