http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52917
Jonathan Wakely redi at gcc dot gnu.org changed:
What|Removed |Added
Status|SUSPENDED |RESOLVED
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://gcc.gnu.org/bugzilla/show_bug.cgi?id=52917
--- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org 2012-04-10
11:23:51 UTC ---
(In reply to comment #3)
Ok, I didn't know about the defect report and resolution yet.
I must admit that I quite like the int() syntax.
It's a peculiarity
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52917
Jonathan Wakely redi at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |SUSPENDED
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