Re: [PATCH] PR libstdc++/87704 fix unique_ptr(nullptr_t) constructors

2018-10-25 Thread Jonathan Wakely
On 23/10/18 14:10 +0100, Jonathan Wakely wrote: Using a delegating constructor to implement these constructors means that they instantiate the destructor, which requires the element_type to be complete. In C++11 and C++14 they were specified to be delegating, but that was changed as part of LWG 2

[PATCH] PR libstdc++/87704 fix unique_ptr(nullptr_t) constructors

2018-10-23 Thread Jonathan Wakely
Using a delegating constructor to implement these constructors means that they instantiate the destructor, which requires the element_type to be complete. In C++11 and C++14 they were specified to be delegating, but that was changed as part of LWG 2801 so in C++17 they don't require a complete typ