vd
Enables or suppresses hidden vtordisp
members in C++ objects.
Syntax
Linux:
None
Windows:
/vd
n
Arguments
- n
- Possible values are:
- 0
- Suppresses the creation of the hiddenvtordispmembers in C++ objects.
- 1
- Enables the creation of hiddenvtordispmembers in C++ objects when they are necessary.
- 2
- Enables the hiddenvtordispmembers for all virtual base classes with virtual functions. This setting is recommended in the following cases:
- When the only virtual function in your virtual base class is a destructor
- When you want to ensure correct performance of the dynamic_cast operator on a partially-constructed object
Default
- /vd1
- The compiler enables the creation of hiddenvtordispmembers in C++ objects when they are necessary.
Description
This option enables or suppresses hidden
vtordisp
members in C++ objects.
This is a compatibility option for the Microsoft Visual
C++* option
/vdn
. For full details about this compiler option, see the
Microsoft* documentation.
IDE Equivalent
None
Alternate Options
None