Removing Deprecated Operator ++ (bool)

For the history of the operator ++, read below.

The increment operator for bool has been already deprecated for a very long time!

The committee recommended against its use back in 1998 (C++98), but they only now finally agreed to remove it from the language.

Note: that operator-- was never enabled for bool.

If you try to write the following code, you will get an error:

Get hands-on with 1200+ tech skills courses.