19-04-2024, 04:53 PM
From the definitions in MISRA 2008, integral constant expressions are never cvalues.
As far as we can determine, your example code should be compliant, at least with respect to the use of cvalues.
As far as we can determine, your example code should be compliant, at least with respect to the use of cvalues.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group