A function for fixing different implementations of typeid on multiple C++ compilers.