How to turn off RTTI in Visual Studio 2008
问题 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? 回答1: Is it possible that you used typeid