/GR (Enable Run-Time Type Information)
Visual Studio .NET 2003
/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.
To set this compiler option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
- Click the C/C++ folder.
- Click the Language property page.
- Modify the Enable Run-Time Type Info property.
To set this compiler option programmatically