capture by value class members
No, data members cannot be captured by value. A lambda can capture only two kinds of things: the this pointer, and nonstatic local variables (that is, variables with automatic storage duration). As has been noted by ildjarn in the comments, you can create a local variable with a copy of the value of the data … Read more