Is there such macro in C++ (cross-compiler or compiler-specific):
#if isclass(NameSpace::MyClass)
Would be useful.
If you do not care about portability, the __if_exists statement in VC++ meets your needs.