HP aC++ Release Notes Version A.03.95 (5900-1789; September 2011)

HP aC++ Release Notes
New Features in Version A.03.37
Chapter 132
int size = sizeof(u’t’); // size of 2 bytes
__restrict Keyword Support
The __restrict keyword is now recognized by the compiler. Refer to the description of the C99 restrict
type-qualifier keyword in ISO/IEC 9899:1999 (6.7.3).
+ub and +sb Options to Control Bitfield Signedness
The +ub option treats unqualified bit fields as unsigned. The +sb option treats unqualified bit fields as
signed. The +uc option overrides +sb option for char bitfields.
Note that in 64 bit mode, +sb option is set by default, to match HP C.
ANSI C++ Covariant Return Type
With this release, covariant return type feature is fully supported. Basically, return type of an overriding
function can be a pointer or reference to a class derived from the return type of the base class.
Example 1:
class BaseClass
{
public:
virtual BaseClass* foo();
};
class DerivedClass : public BaseClass
{
public:
DerivedClass* foo();
};
Example 2:
class BaseClass_1
{
public: