Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
6-5-2 and 6-5-4 on while loop checking std::vector::empty()
#2
See our earlier reply to 'Rule 6-6-3 in while-loops'

... there have been a number of previous posts about whether rules 6-5-1 to 6-5-6 apply to while loops as well as for loops. The reply to “Rules 6-5-1 to 6-5-6” by dg1980 April 28 2016 (in section 6.5 of the bulletin board) was:

6-5-1 only applies to for loops, arguably 6-5-2 to 6-5-6 may apply to while loops as well.

These rules are under consideration in light of this and MISRA C:2012's approach
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: 6-5-2 and 6-5-4 on while loop checking std::vector::empty() - by misra cpp - 12-11-2021, 01:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)