37 explicit base(
int i) : i(i)
43 virtual base* clone()
const = 0;
45 virtual ~base() noexcept { --n_alive; }
137 assert(*(a.
p) == *b);
138 assert(a.
p->isSame(*b) ==
false);
derived(derived const &s)
derived * clone() const override
bool isSame(base const &o) const
bool isSame(derived const &o) const
bool operator==(base const &o) const
bool operator==(derived const &o) const