More C++ Idioms/Polymorphic Value Types

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Polymorphic Value Types


Support run-time polymorphism of value types without requiring inheritance relationship.

Also Known As[edit]

Run-time Concept


Solution and Sample Code[edit]

Known Uses[edit]

Adobe Poly Library

Related Idioms[edit]


Sean Parent: Value Semantics and Concepts-based Polymorphism @ C++ Now! 2012, Aspen, CO

Inheritance Is The Base Class of Evil