[Bug libstdc++/52917] [DR 2048] explicitly stated return type in std::mem_fn cannot be compiled

2014-05-07 Thread redi at gcc dot gnu.org
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

[Bug libstdc++/52917] [DR 2048] explicitly stated return type in std::mem_fn cannot be compiled

2012-04-10 Thread freunddeslichts at web dot de
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

[Bug libstdc++/52917] [DR 2048] explicitly stated return type in std::mem_fn cannot be compiled

2012-04-10 Thread redi at gcc dot gnu.org
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

[Bug libstdc++/52917] [DR 2048] explicitly stated return type in std::mem_fn cannot be compiled

2012-04-09 Thread redi at gcc dot gnu.org
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

[Bug libstdc++/52917] [DR 2048] explicitly stated return type in std::mem_fn cannot be compiled

2012-04-09 Thread redi at gcc dot gnu.org
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