MISRA.UN_OP.OVERLOADUnary & operator is overloaded. MISRA-C++ Rule 5-3-3 (required): The unary & operator shall not be overloaded.[Undefined 5.3.1(4)] RationaleTaking the address of an object of incomplete type where the complete type contains a user declared operator & leads to undefined behaviour. Example// A.h class A { public: A * operator & ( ); // Non-compliant }; // f1.cc class A; void f ( A & a ) { &a; // uses built-in operator & } // f2.cc #include "A.h" void f2 ( A & a ) { &a; // use user-defined operator & } |