Skip to content

CA-086 20.2.6p5 [obj.lifetime] Allow 0 for the second parameter to start_lifetime_as_array #459

@wg21bot

Description

@wg21bot

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Tentatively Ready

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions