Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

vd

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

Syntax

Linux:

None

Windows:

/vdn

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.

IDE Equivalent

None

Alternate Options

None