HP-UX Cadvise Diagnostics Reference Guide (5900-1865, August 2012)

Table Of Contents
Example:
struct Dummy {
int i;
};
Dummy::i = 10;
}
Action:
Access non-static members through objects only. For example: Dummy d; d.i = 10;
Reference:
2248 pointer to reference is not allowed
Cause:
Pointer to reference is incorrect and is not allowed.
Example:
int *i = 0;
int & * pri = i;
}
Action:
Check if you meant to declare a pointer to a reference. For example: int * & pri = i;
Reference:
ANSI/ISO C++ 8.3.2 (4)
2249 reference to reference is not allowed
Cause:
Reference to reference is incorrect and is not allowed.
Example:
int i = 0;
int & & ri = i;
}
Action:
Check if you typed extra & by mistake. For example: int & ri = i;
Reference:
ANSI/ISO C++ 8.3.2 (4)
2250 reference to void is not allowed
Cause:
Reference to void is incorrect and is not allowed.
Example:void & foo() { }
}
Action:
Remove the & and make it a plain void type. For example: void foo() {}
Reference:
ANSI/ISO C++ 8.3.2 (4)
2251 array of reference is not allowed
Cause:
36 Diagnostics Details