Re: [PATCH] PR78052 Define std::allocator::{construct,destroy}

2016-10-20 Thread Jonathan Wakely
On 20/10/16 11:12 +0100, Jonathan Wakely wrote: This let's std::allocator be used in situations like: std::allocate_shared(std::allocator(), 1); where a "proto-allocator" is required. The other members such as allocate() and max_size() don't make sense for void, but construct and destroy don't

[PATCH] PR78052 Define std::allocator::{construct,destroy}

2016-10-20 Thread Jonathan Wakely
This let's std::allocator be used in situations like: std::allocate_shared(std::allocator(), 1); where a "proto-allocator" is required. The other members such as allocate() and max_size() don't make sense for void, but construct and destroy don't depend on value_type. PR libstdc++/78052