Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
5-2-12 - Does the rule apply for braced-init-list arg to initializer_list parameter?
#2
When the MISRA rule was written initializer_lists 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 initializer_lists should be compliant with this rule, even if it can be assumed that it is implemented with an array decay.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: 5-2-12 - Does the rule apply for braced-init-list arg to initializer_list parameter? - by misra cpp - 26-01-2022, 10:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)