Skip to content

[span.sub] para 5 condition is insufficient #159

Description

Per the discussion in #142 (comment).

Offset + Count <= size() is insufficient to guarantee that the span returned from span::subspan is valid since Offset + Count can wrap. It should instead be Count <= size() - Offset.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LWG issue neededA wording defect that should be submitted to LWG as a new issueresolvedSuccessfully resolved without a commit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions