Skip to content

Add PolymorphicValue type

Gerhard Raven requested to merge add-polymorphicvalue into master
  • PolymorphicValue wraps a (unique) pointer to a base class in a type which has value semantics -- e.g. can be copied and assigned -- provided the base class (interface) provides a 'clone()' function. Copy and assignment will use 'clone' to create a copy of the underlying object
  • a trivial, intrusive version of the more generic 'non-intrusive'
Edited by Gerhard Raven

Merge request reports