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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-09 
21:35:07 UTC ---
(In reply to comment #1)
> Or you can do
> 
>   auto y = std::mem_fn((int& (X::*)())&X::get );

Or 

  auto y = std::mem_fn <int&()>(&X::get );

Which should also work with either libstdc++ or libc++

Reply via email to