Developer Guide and Reference

Contents

vd

Enables or suppresses hidden vtordisp members in C++ objects.

Syntax

Linux:
None
macOS:
None
Windows:
/vd
n
Arguments
n
Possible values are:
0
Suppresses the creation of the hidden
vtordisp
members in C++ objects.
1
Enables the creation of hidden
vtordisp
members in C++ objects when they are necessary.
2
Enables the hidden
vtordisp
members 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 hidden
vtordisp
members 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.
Alternate Options
None