Skip to content

Clean up ConstraintVariable copy constructors/getCopy function #707

Open
@kyleheadley

Description

@kyleheadley

ConstraintVariable(CV) and subclasses have copy constructors and a function getCopy. Neither is documented and the seem to be similar. It looks like some authors even thought they were. But getCopy creates constraints, and seems to be used for function return r-values. Copy constructors may only be in support of this function, but we shouldn't be creating new CVs if we can appropriately build constraints off of them.

Rename and document "getCopy" to reflect its use. Determine when actual copies are appropriate and clean up or even delete the copy constructors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions