I\'m trying to cast from one generic to another, say:
myClass anItem = myclass anotherObject;
Sorry, that is not possible. (Well, unless you do nasty reinterpret_cast
hacks, but you don't want to do that - the end result would not be pretty).
T
and T
are not related. Compiler cannot assume that - remember that it is entirely possible that T was specialized for Derived to be something completely different.