More C++ Idioms/Polymorphic Value Types

< More C++ Idioms

Contents

Polymorphic Value TypesEdit

IntentEdit

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

Also Known AsEdit

Run-time Concept

MotivationEdit

Solution and Sample CodeEdit

Known UsesEdit

Poly Library

Related IdiomsEdit

ReferencesEdit

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

Inheritance Is The Base Class of Evil