2502. std::function does not use allocator::construct

Section: [func.wrap.func] Status: Resolved Submitter: David Krauss Opened: 2015-05-20 Last modified: 2020-09-06 13:52:31 UTC

Priority: 3

View all other issues in [func.wrap.func].

View all issues with Resolved status.


It is impossible for std::function to construct its target object using the construct method of a type-erased allocator. More confusingly, it is possible when the allocator and the target are created at the same time. The means of target construction should be specified.

[2016-08 Chicago]

Tues PM: Resolved by P0302R1.

Proposed resolution:

Resolved by P0302R1.