25-01-2026, 01:12 PM
In addition, we intend to clarify "explicitly designates" with the following example (or something similar):
int arr[10];
struct A {
int m_a;
const int &a() const { // compliant - the return expression references m_a, but does not designate it.
return arr[m_a];
}
};
int arr[10];
struct A {
int m_a;
const int &a() const { // compliant - the return expression references m_a, but does not designate it.
return arr[m_a];
}
};
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group

