Skip to content

Check if we need to manage the copy constructors and assignment operator (operator=) if we have member variables that are pointers #38

@dmultiply

Description

@dmultiply

If member variables are pointers, a copy of an object of the class, or an assignement to another object, may make two objects point to the same member object.
It may lead to wrong behavior, and to failure if the objects are created with new in the constructor.
When delete is called in the destructor, there may be a program failure

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions