This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

2416. [fund.ts] std::experimental::any allocator support is unimplementable

Section: 99 [fund.ts::any.class] Status: Resolved Submitter: Jonathan Wakely Opened: 2014-06-16 Last modified: 2017-02-03

Priority: Not Prioritized

View all issues with Resolved status.


Addresses: fund.ts

The allocator-extended copy constructor for any requires an arbitrary template parameter to be available in a type-erased context where the dynamic type of the contained object is known. This is not believed to be possible in C++.

If the allocator-extended copy constructor cannot be defined it questions the usefulness of the other allocator-extended constructors.

[Urbana, 2014-11]

Resolved by paper N4270.

Proposed resolution: