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


795. Dependency of lambdas on <functional>

Section: 7.5.6  [expr.prim.lambda]     Status: NAD     Submitter: UK     Date: 3 March, 2009

N2800 comment UK 45

7.5.6 [expr.prim.lambda] paragraph 2 says,

A closure object behaves as a function object (22.10 [function.objects])...

This linkage to <functional> increases the dependency of the language upon the library and is inconsistent with the definition of “freestanding” in 16.4.2.5 [compliance].

Rationale (July, 2009):

The reference to 22.10 [function.objects] appears in a note, not in normative text, and is intended only to clarify the meaning of the term “function object.” The CWG does not believe that this reference creates any dependency on any library facility.