[Webkit-unassigned] [Bug 137565] New: Avoid defaulting to capture-by-value for C++11 lambdas in WebCore
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 9 13:12:53 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=137565
Summary: Avoid defaulting to capture-by-value for C++11 lambdas
in WebCore
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: zandobersek at gmail.com
Using the default capture-by-value should be avoided as it can produce various negative side effects, e.g. capturing the this pointer when a member variable is used inside the lambda, and thus failing to make the lambda object self-contained.
It also requires the author to explicitly list the variables she intends to use inside the lambda, providing one additional checkpoint at ensuring that the correct variables are used.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list