[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Catching Mixed Use of `class' and `struct' Keywords

If the Inconsistent Use of `class' and `struct' Keywords option is on, the compiler issues a warning if the class and struct keywords are used in the definition and declaration of the same identifier.


class X;
struct X { int a; }; // warning

Use this warning when linking (with static or dynamic libraries) with object code produced from another C++ compiler that makes a distinction between class and struct variables in its name "mangling."

This option corresponds to pragma warn_structclass. To check whether this option is on, use __option (warn_structclass). See "Checking Options" for information on how to use this directive.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000