79122865

Date: 2024-10-24 16:31:22
Score: 1.5
Natty:
Report link

Blockquote: I would like to follow the MISRA C++:2023 coding guideline[s]. But it targets C++17, while the code and compiler follow C++14.

Do you want to run your diesel engine on petrol?

Blockquote: But I would see C++14 as a subset of C++17 (with only few breaking changes). Would I not be MISRA-C++-2023 compliant or only with additional rules?

Use Autosar C++ 14 Guidelines instead, which is a 70% reference to MISRA C++ 2008. You will not be able to make C++14 compliant with Rule 4.1.1 without a Deviation. Further, read the MISRA Compliance:2020, which is mandated for use with MISRA C++ 2023.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ian Lowson