[Bug libstdc++/57283] missing typedefs in specialized std::mem_fn for member variables

2013-05-16 Thread record.nctu.cis91 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57283 --- Comment #5 from Lin Yi-Li --- (In reply to Jonathan Wakely from comment #4) > N.B. you can also do it with a nested std::bind expression and > std::logical_not > > std::bind(std::logical_not(), > std::bind(std::mem_fn(&cls::value),

[Bug libstdc++/57283] missing typedefs in specialized std::mem_fn for member variables

2013-05-15 Thread record.nctu.cis91 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57283 --- Comment #2 from Lin Yi-Li --- Sorry I missed that 'pm is a pointer to member function...'. I know that C++11 has lambda, but using std::mem_fn is sometimes much clear. But according to standard, value from std::mem_fn for variable will not be

[Bug libstdc++/57283] New: missing typedefs in specialized std::mem_fn for member variables

2013-05-15 Thread record.nctu.cis91 at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: record.nctu.cis91 at gmail dot com Created attachment 30118 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30118&action=edit code-reproduce-this-issue.cpp I found t