MTC added a comment.

In, @alexshap wrote:

> i see, but just in case - what about the decrement operator ?

@alexshap, If I'm not wrong, decrement operation is not allowed on bool type in 
C++98 and C++14.

> 5.2.6 Increment and decrement []
>  The operand of postfix -- is decremented analogously to the postfix ++ 
> operator, except that the operand
>  shall not be of type bool. [ Note: For prefix increment and decrement, see 
> 5.3.2. — end note ]

  rC Clang

cfe-commits mailing list

Reply via email to