| Syntax: | Default: |
| lang(illformedPointerToMember[,
yes]) lang(illformedPointerToMember, no) |
lang(illformedPointerToMember[, yes]) |
This option controls what expressions can be used to form pointers to members. VisualAge C++ can accept some forms that are in common use, but do not conform to the C++ standard.
By default, VisualAge C++ allows these forms. This is an extension to standard C++ and gives behavior that is compatible with the C++ compilers provided by earlier versions of VisualAge C++ and predecessor products, and Microsoft Visual C++.
When this option is set to yes, you receive warnings if your code uses the extension, unless you suppress the messages with report(disable, "CPPC0228") and report(disable, "CPPC0286").
For example, the following code defines a pointer to a function member, p, and initializes it to the address of C::foo, in the old style:
struct C {
void foo(int);
};
void (C::*p) (int) = C::foo;
Set illformedPointerToMember to no for compliance with the C++ standard. The example code above must be modified to use the & operator.
struct C {
void foo(int);
};
void (C::*p) (int) = &C::foo;
![]()
Incremental C++ Build
Configuration Files
![]()
Language Options for C++
Build Options for Compliance With the C++
Standard
Build Options for Compatibility with Old
C++ Compilers
