Skip to content

Bridges: return copies of indices instead of the bridge's internal vector #12

@dourouc05

Description

@dourouc05

jump-dev/MathOptInterface.jl#1344 (comment):

Some bridges return a vector for things like ListOfVariableIndices that they use internally. Since we have the (unstated???) contract that results returned from MOI.get are now the property of the caller, these should switch to returning copies. Anything else just seems liable to introduce bugs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions