That's an excellent idea!
AMDGA more automated way would be to use
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).
multiple inheritance and cross cast.
class any_impl_base {
public:
virtual ~any_impl_base() {}
};
template<class T, bool is_class = boost::is_class<T>::value>
class any_impl : public T, public any_impl_base {};
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users