I am not sure about other versions, but, in VS 2008 even with RTTI disabled I can query the information by calling typeid(T).name() on the type. It works with all types, internal and user created.
Our project has RTTI disabled but I was surprised to find that this still worked. Is this a Visual Studio bug or is the /GR- flag not enough to disable it? Does this fall into the realm of undefined behavior? If it is not a bug, how do I really turn it off?
Is it possible that you used
typeidon an expression whose type is known at compile time? If so you would bypass the “run-time” aspect of RTTI altogether. From the Microsoft documentation ontypeid: