
6 Sep
2010
6 Sep
'10
7:05 p.m.
AMDG Tang Jiang Jun wrote:
After thinking deeper, I figure out a rough implementation for this idea, and prove it can work with polymorphism. (It is just rough concept verification, and need a lot of work to polish it and make it usable).
A more automated way would be to use
multiple inheritance and cross cast.
class any_impl_base {
public:
virtual ~any_impl_base() {}
};
template