Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
21.2.2 Why shall std::strerror not be used?
#4
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')
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: 21.2.2 Why shall std::strerror not be used? - by misra cpp - 18-07-2025, 11:59 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)