Is there such macro in C++ (cross-compiler or compiler-specific):
#if isclass(NameSpace::MyClass)
Would be useful.
That's not possible, but you could use your include guard constant to verify that the class has been included.