23-02-2022, 10:36 AM
When the MISRA 2008 rule was written range-based for loops had not been defined, so were not considered by the rule. It was adopted by Autosar unmodified.
The view of the committee is that use of range-based for loops with objects of array type should be compliant with this rule.
The view of the committee is that use of range-based for loops with objects of array type should be compliant with this rule.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group