More C++ Idioms/Polymorphic Value Types

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

Polymorphic Value Types

Intent

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

Also Known As

Run-time Concept

Motivation

Solution and Sample Code

Known Uses

Adobe Poly Library

Related Idioms

References

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

Inheritance Is The Base Class of Evil