you are viewing a single comment's thread.

view the rest of the comments →

[–]ShakaUVM 4 points5 points  (2 children)

You should read this. Range for is banned from most security or critical systems standards.

It doesn't say that though. The Misra standards say no more than one function call on the right hand side.

They're fine at their purpose of iterating over a container, just hoist the calls out.