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++/39136] std::mem_fun_ref fails to accept a member function whose second argument with default value



------- 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


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