/GR
This option (/GR) adds code to check object types at run time. When this option is specified, the compiler defines the _CPPRTTI preprocessor macro. The option is cleared (/GR–) by default.
For more information on run-time type checking, see Run-Time Type Information in the C++ Language Reference.
Compiler Options | Setting Compiler Options