Skip to content

Indexing of an empty vector #205

Closed
Closed

Description

@intractabilis

heap.copy<T>(a,&aa[0],n);

This line will throw an unexpected exception if aa is empty.

Activity

  1. zayenz commented on Jul 13, 2026

    @zayenz
    Member

    Fixed by #218. Constructing IntArgs, IntVarArgs, or BoolVarArgs from an empty vector no longer indexes the vector, and the empty cases have regression tests.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions