Last time I've seen MISRA C++, it was ancient and obsolete for C++11. For example single exit point results into nasty and long code, one or more variables over whole procedure and so on. As RAII...