11-01-2022, 11:23 AM
You are right that this rule simply requires that the return type be 'bool' (a typedef alias for bool would also be acceptable)
Any implicit conversions of non-Booleans values in a Boolean context should be caught by other rules.
(Sorry for the delay in replying, we had a log-in problem with the Bulletin Board)
Any implicit conversions of non-Booleans values in a Boolean context should be caught by other rules.
(Sorry for the delay in replying, we had a log-in problem with the Bulletin Board)
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group