Skip to content

Concore C++ class is resource-owning but implicitly copyable (Rule-of-Five violation) #469

@avinxshKD

Description

@avinxshKD

concore.hpp owns shared-memory handles/pointers and has destructor cleanup, but copy/move semantics are not explicitly defined. That allows accidental shallow copies of ownership state, which is unsafe and can lead to duplicate cleanup paths. Expected is explicit ownership model (non-copyable + safe moves / RAII wrapper). Current behavior is fragile and easy to misuse.

Expected, clear ownership semantics for resource-owning type:
delete copy ctor/assignment
implement safe move ctor/assignment (or equivalent RAII wrapper object)

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