dhaumann added a comment.
In D24262#539317 <https://phabricator.kde.org/D24262#539317>, @dfaure wrote: > It's actually quite clear in my head, because I imagine the generated class. A captured variable in a lambda becomes a member variable. If it's a capture by value (which is what happens with [library]), it's a "plain value" member. > So David's explanation is much more correct: Behind the scenes you have this Closure trick with a functor object, not really a free function what I was claiming ;) REPOSITORY R306 KParts REVISION DETAIL https://phabricator.kde.org/D24262 To: kossebau, dfaure Cc: dhaumann, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns