You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The operand of ~ shall have integral or unscoped enumeration type; the result is the ones' complement of its operand. Integral promotions are performed. The type of the result is the type of the promoted operand.
What is the operand refers to? It is more clear if we say
The operand of ~ shall have integral or unscoped enumeration type. Integral promotions are performed on the operand. The result is the ones' complement of the (possible promoted) operand. The type of the result is the type of the promoted operand.
The text was updated successfully, but these errors were encountered:
[expr.unary.op] p10 says
What is the operand refers to? It is more clear if we say
The text was updated successfully, but these errors were encountered: