
7 Dec
2013
7 Dec
'13
2:52 p.m.
2013/12/7 TONGARI J
Maybe we can promote this idea to something more general, like 'variant_cast', not necessary have to be in base-derived relationship but just something convertible.
Does that make sense?
I'd prefer not mixing functionalities. We can make polymorphic_get<> work only for polymorphic casts (Base and Derived can be checked using type trait). -- Best regards, Antony Polukhin