This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61636] generic lambda "cannot call member function without object"
- From: "tower120 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 Jun 2014 08:22:08 +0000
- Subject: [Bug c++/61636] generic lambda "cannot call member function without object"
- Auto-submitted: auto-generated
- References: <bug-61636-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636
--- Comment #1 from tower120 <tower120 at gmail dot com> ---
Furthermore, if not pass "data" as a lambda function param, but capture it from
current scope, it deduces type wrong.
http://coliru.stacked-crooked.com/a/ae022b9d25d93490
Uncomment static_cast to make it work.
But may be this is unrelated to described above issue.