Re: [PATCH] PR77987 Fix unique_ptr::reset(U) for T != U

2016-10-19 Thread Jonathan Wakely
On 17/10/16 13:00 +0100, Jonathan Wakely wrote: This is a very simple change, to allow conversions that are supposed to be valid according to DR 2118. The fix was slightly complicated by the tests being a bit of a mess. We had tests for this requirement, but they were in files which mixed positiv

[PATCH] PR77987 Fix unique_ptr::reset(U) for T != U

2016-10-17 Thread Jonathan Wakely
This is a very simple change, to allow conversions that are supposed to be valid according to DR 2118. The fix was slightly complicated by the tests being a bit of a mess. We had tests for this requirement, but they were in files which mixed positive tests and negative tests. I've split the tests