18-07-2025, 11:59 AM
strerror_r is not part of the C++ standard library, so isn't covered by the MISRA rules (other than the requirement to validate third-party libraries).
You can always raise a deviation to allow the use of std::error, but be aware of 25.5.2 and 25.5.3 ('must be used as if the return type is a pointer to const-qualified type' and 'the value returned must not be used following a subsequent call to the same function')
You can always raise a deviation to allow the use of std::error, but be aware of 25.5.2 and 25.5.3 ('must be used as if the return type is a pointer to const-qualified type' and 'the value returned must not be used following a subsequent call to the same function')
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group