This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


955. Can a closure type's operator() be virtual?

Section: 7.5.6.2  [expr.prim.lambda.closure]     Status: CD2     Submitter: Daniel Krügler     Date: 19 August, 2009

[Voted into WP at March, 2010 meeting.]

The specification of the members of a closure type does not rule out the possibility that its operator() might be virtual. It would be better to make it clear that it cannot.

Proposed resolution (October, 2009):

Change 7.5.6 [expr.prim.lambda] paragraph 5 as follows:

... followed by mutable. It is not neither virtual nor declared volatile. Default arguments...