Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A4-5-1 with overloading operator<<
#2
You are correct that use of operator<< as a stream output with enum is not permitted by this rule, so your example needs a deviation.

However, we agree that the use of enums with streams should be compliant. MISRA C++:2023 allows the use of scoped enums with streams.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A4-5-1 with overloading operator<< - by misra cpp - 08-12-2023, 01:17 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)