Huh? I believe you have misunderstood something here. The
struct is a form
of smart pointer. It behaves like a pointer does, and lets you
have
polymorphism, inheritance and all that stuff that comes with
classes.
Granted, I have found a few issues with the version I posted
(mostly to do
with subclassing). Most have been fixed in this version, but
some are
unfixable until issue 1528 has been resolved.
Some kind of smart pointer is easy to write, or not?
What's wrong with this?
http://dpaste.dzfl.pl/11a4d692