gen(longdouble, yes) // Note: The size of a long double is not defined by
the language standard
gen(winmain, no)
gen(rtti, yes)
lang(allowTypedefAsClassName, no)
lang(anonymousStructs, no)
lang(compatFriendDeclarations, no)
lang(compatTempAccessChecking, no)
lang(compatTemplateSpecialization, no)
lang(compatMath, no)
lang(compatStr, no)
lang(extendedAnonymousUnions, no)
lang(illformedPointerToMember, no)
lang(implicitInt, no)
lang(longlong, no)
I have opened a feature to suggest that a single option be created which
would be the equivalent of setting these options.
You could define an options group in a separate .icc file which you could
include in any icc file where you wish to use it:
// ansi.icc
// Options to enforce Full ANSI compliance
option FullANSIcompliance = gen(longdouble, yes),
gen(winmain, no),
gen(rtti, yes),
lang(allowTypedefAsClassName, no),
lang(anonymousStructs, no),
lang(compatFriendDeclarations, no),
lang(compatTempAccessChecking, no),
lang(compatTemplateSpecialization, no),
lang(compatMath, no),
lang(compatStr, no),
lang(extendedAnonymousUnions, no),
lang(illformedPointerToMember, no),
lang(implicitInt, no),
lang(longlong, no)
// sample.icc
include "ansi.icc"
option FullANSIcompliance
{
// all the target and source directives, etc
}
Dwayne Moore
VisualAge C++ Service & Support