Share via


/vmb - Use Best Case for Pointers

This option defines a class before it is declared a pointer to a member of the class. This is the compiler default.

When the compiler encounters the declaration of a pointer to a member of a class, it already has knowledge of the kind of inheritance used by the class. Thus, the compiler can use the smallest possible representation of a pointer and generate the smallest amount of code required to operate on the pointer for each kind of inheritance.

The compiler generates an error if it encounters the pointer declaration before the class definition. In this case, you must either reorganize your code, use the /vmg option with the /vms, /vmm, or /vmv option, or use the pointers_to_members pragma. You can also define the class using the __single_inheritance, __multiple_inheritance, or __virtual_inheritance keywords, thus allowing control of the code generated on a per-class basis.

The corresponding argument to the pointers_to_members pragma is best_case.

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.