Is there a way in C ++ to determine if a pointer type is a descendant of a specific base type? For example:
template<class T> void Foo(T *obj) { if (Extends<Object>(obj)) ... else ... } Is there a way in C ++ to determine if a pointer type is a descendant of a specific base type? For example:
template<class T> void Foo(T *obj) { if (Extends<Object>(obj)) ... else ... } Source: https://ru.stackoverflow.com/questions/41678/
All Articles
dynamic_cast<></a> into a pattern. - gecube