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

Section: 23.14.13.2 [func.wrap.func] Status: Resolved Submitter: David Krauss Opened: 2015-05-20 Last modified: 2017-03-13

Priority: 3

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

View all issues with Resolved status.

Discussion:

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.