P0207: Ruminations on lambda captures -- Ville Voutilainen

A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: P0207R0

Date: 2016-01-28

Ruminations on lambda captures

by Ville Voutilainen

Excerpt:

The proposal for capturing *this by value (P0018) raised suggestions for a "true value capture", which led to suggestions to change capture-default that defaults to by-value capture([=]) in the case of capturing class members. This paper explores what the suggested changes to the capture-default might mean. This paper specifically doesn't try to claim that any of the changes would have an effect on any particular amount of existing code, and admits that the examples in this paper are somewhat concocted and for illustrative purposes only. 

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.