[Bug libstdc++/52917] [DR 2048] explicitly stated return type in std::mem_fn cannot be compiled
freunddeslichts at web dot de
gcc-bugzilla@gcc.gnu.org
Tue Apr 10 09:54:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52917
--- Comment #3 from freunddeslichts at web dot de 2012-04-10 09:54:28 UTC ---
Ok, I didn't know about the defect report and resolution yet.
I must admit that I quite like the <int&()> syntax.
I added a remark about the defect and a short example to
http://en.cppreference.com/w/cpp/utility/functional/mem_fn
And I noted that the most c++11-ish code would be anyway:
auto y = [] (X& x) {return x.get();};
More information about the Gcc-bugs
mailing list