Rule 0-1-9

Moderators: david ward, misra cpp

Post Reply
Posts: 117
Joined: Wed Apr 27, 2016 2:33 pm
Company: Elektrobit Automotive GmbH

Rule 0-1-9

Post by dg1980 » Wed Sep 28, 2016 1:52 pm

Please add an explicit exception for static_assert if the next MISRA C++ version allows C++11.

misra cpp
Posts: 157
Joined: Mon Jun 02, 2008 1:55 pm
Company: MISRA

Re: Rule 0-1-9

Post by misra cpp » Tue Jan 24, 2017 9:36 am

A review is currently underway to make the rules compatible with C++14

Having said that, static_assert would not be reported by this rule anyway, as it is a compile time check that doesn't create executable code, so it cannot be 'dead'
Posted by and on behalf of
the MISRA C++ Working Group

Post Reply

Return to “6.0 Language independent issues (C++)”