It is possible to use the increment operator ``{plus}{plus}``, to set the value of a ``++bool++``({cpp}) or ``++_Bool++``+(C)+ variable to ``++true++``. But this feature has been deprecated in {cpp} since the 1998 version of the standard, removed in {cpp}17, and even where allowed, is simply confusing. 


== Noncompliant Code Example

----
bool alive;
...
alive++;
----


== Compliant Solution

----
bool alive;
...
alive = true;
----


== See

*  ISO/IEC 14882:1998, 5.3.2


ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]
