/* * Cloneable.h 2014-12-04 * * The commonly-used cloneable pattern. */ #ifndef CLONEABLE_H #define CLONEABLE_H struct Cloneable { virtual ~Cloneable() = default; virtual Cloneable* clone() const = 0; }; #endif