Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A4-5-1 with overloading operator<<
#3
(08-12-2023, 01:17 PM)misra cpp Wrote: 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.

Thank you for your answer and the information, good to know that it is already considered in MISRA C++:2023.
Reply


Messages In This Thread
RE: A4-5-1 with overloading operator<< - by Jakob Klein - 12-12-2023, 09:23 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)