Skip to content

TskWrappedArray life times #99

@molpopgen

Description

@molpopgen

This type wraps the raw C arrays and is used by NodeIterator objects derived from Tree. However, the type is also public, resulting in a potential safety issue. If the parent Tree is dropped, the array content is invalidated.

Potential solutions:

  1. Make the arrays private
  2. Try to figure out lifetime annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions