08-12-2023, 01:17 PM
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.
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
the MISRA C++ Working Group