cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

US 34-088 20.2.6p5 [obj.lifetime] start_lifetime_as_array with zero-length array #508

Closed wg21bot closed 1 year ago

wg21bot commented 1 year ago

0 should be a permitted value for the second parameter (to start_lifetime_as_array). This would make code interacting with this function easier to write and less error prone.

Proposed change:

Remove paragraph 5. Adjust paragraph 6 such that equivalence is maintained only if the previous precondition is met. If n is 0 then a pointer which compares equal to p is returned but which may only be used in the manner which past-the-end pointers may be used.

brycelelbach commented 1 year ago

Duplicate of #459