MISRA Discussion Forums

Full Version: 3-9-2 and auto in future MISRA C++14
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

as stated here (https://misra.org.uk/forum/viewtopic.php...1504#p3404) the next version of MISRA C++ will be based on ISO C++14.
I am curious if you already came to a decision on whether to allow or prohibit the auto keyword for automatic type deduction?
While it is certainly more convenient to write code, i would imagine performing a code review or adapting a static analysis tool would become more challenging.
We are currently working on a new version of MISRA C++ to cover the features added in C++11, 14 and 17 and some requirements from Autosar

The use of auto is part of that work. A draft for public comment is expected next year (2019)
(25-10-2018, 09:31 AM)misra cpp Wrote: [ -> ]We are currently working on a new version of MISRA C++ to cover the features added in C++11, 14 and 17 and some requirements from Autosar

The use of auto is part of that work.  A draft for public comment is expected next year (2019)

Any news on that?
Its imminent.  Look out for announcements from David Ward.