Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A8-5-2 + A8-5-3: No usage of auto allowed?
#3
You are correct that currently there is a contradiction between A8-5-2 and A8-5-3. This is highlighted in the examples for A8-5-3, which explicitly show non-compliances with A8-5-2. This can be used as part of the argument to deviate A8-5-2.

C++17 fixed the issue that A8-5-3 aims to prevent. If you are using a C++17 or later compiler, this can be used as part of the argument to deviate A8-5-3.

Autosar:2018 and MISRA C++:08 are about to be replaced by MISRA C++:23 which has been updated to remove these issues.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A8-5-2 + A8-5-3: No usage of auto allowed? - by misra cpp - 27-10-2023, 03:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)