47 template<
class B,
class D>
52 return new D(dynamic_cast<D const&>(*
this));
57 template<
typename... Args>
B * clone() const override
Clone the base B object on the heap.
template struct cloner<B,D> is a base template from which derived instantiations can inherit cloneabi...
cloner(Args...args)
All purpose constructor.