Skip to content

avoid having two distinct systems for copying #17884

Closed
@thestinger

Description

@thestinger

Since Copy doesn't result in an automatic Clone implementation, there are two entirely separate systems for doing copies. There are many types providing Copy without a corresponding Clone implementation and nothing enforces that Clone performs the same operation.

Ideally, the trait system could allow an implementation of Clone for T: Copy without introducing problematic conflicts. If that's not possible, then something else should be done to provide a system that's at least as sane as the story in C++.

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