It is easier to explain on an example so,
class base { //.... } class derived1 : public base { //... }
In my library, there is a pointer o
Check if class is derived from a specific class (compile time)
You can use std::is_base_of:
#include .... const bool isBase = std::is_base_of::value;
isBase is true if TheOtherClass is derived from base.
isBase
TheOtherClass
base