Re: [PATCH] PR libstdc++/87982 Fix generate_n and fill_n use of _Size parameter

2019-04-29 Thread Jonathan Wakely
On 29/04/19 13:13 +0100, Jonathan Wakely wrote: The standard only requires that _Size can be converted to an integral type, not that it can be used for arithmetic. Add a new set of __size_to_integer helper functions to do the conversion (which will be ambiguous if there is no one

[PATCH] PR libstdc++/87982 Fix generate_n and fill_n use of _Size parameter

2019-04-29 Thread Jonathan Wakely
The standard only requires that _Size can be converted to an integral type, not that it can be used for arithmetic. Add a new set of __size_to_integer helper functions to do the conversion (which will be ambiguous if there is no one conversion that is better than any others). Also add tests for