diff --git a/cppguide.html b/cppguide.html index bbf1f64..761194c 100644 --- a/cppguide.html +++ b/cppguide.html @@ -3479,7 +3479,8 @@ array(T, U...) -> std::array<T, 1 + sizeof...(U)>;

Lambda expressions

Use lambda expressions where appropriate. Prefer explicit captures -when the lambda will escape the current scope.

+when the lambda will escape the current scope. Do not use [=] +or [=, this] to capture this.

Lambda expressions are a concise way of creating anonymous @@ -3555,13 +3556,19 @@ std::sort(indices.begin(), indices.end(), [&](int a, int b) {