Skip to content

Promote idiomatic style in example code #7

@purpleKarrot

Description

@purpleKarrot

The motivation of P3019 reads:

When designing a composite class, we may need an object to be stored indirectly to support incomplete types, reduce object size or support open-set polymorphism.

The usage examples in the README should:

  • Focus on composite classes (Don't use indirect and polymorphic outside classes).
  • Make data members private in accordance to C.9: Minimize exposure of members.
  • Show that C.35 can be simplified:
    A base class destructor should be either public and virtual, or protected and non-virtual.

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