Skip to content

Add support for self-contained data types #32

Description

@divanchykhin

A type is self-contained, if, after copying an object of that type, all references/pointers in its copy point to objects inside that copy.

Examples:

  • numericals;
  • owning pointer to an object of self-contained type;
  • strings;
  • data structures consisting of the above

Sufficient condition: no "magic 5" (c(d)tors) and all members are also self-contained.

Implementation: potentially can go along lines of adding an attribute or constexpr.

Also: respective rule should be added.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions