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.
The motivation of P3019 reads:
The usage examples in the README should:
indirectandpolymorphicoutside classes).privatein accordance to C.9: Minimize exposure of members.A base class destructor should be
either public and virtual, orprotected and non-virtual.