I get this error in PC-Lint (au-misra-cpp.lnt):
error 1960: (Note -- Violates MISRA C++ 2008 Required Rule 5-2-12, Array type passed to function expecting a pointer)
On this code:
_IDs["key"] = "value";
The _IDs is declared as:
std::map<std::string,std::string> _IDs;
also tried changing to:
_IDs.insert("key","value");
But get the same error.
How do I get the code to be misra compliant?