P4307

An Infix Operator and a Keyword Escape for C++

R1

C++ reserves non-strict evaluation to a fixed set of built-ins: ‘&&‘, ‘||‘ and ‘?:‘. The comma operator is the near neighbor, and is not one of them: it evaluates both of its operands, and what it fixes is the **sequencing**. Overloading does not get non-strict evaluation back: an overloaded ‘operator&&‘ evaluates both operands, which is the trap everyone has been bitten by, and the reason the standing advice is: don’t. Non-strict evaluation has been closed to user code since C++98.

Authors
Steve Downey
Mailing
2026-10
Doc date
2026-10-22
Audience
EWG

Revision history

  1. 2026-10
    R1 Selected (shown above)
  2. 2026-09
    R0 EWGSG17

    An Infix Operator and a Keyword Escape for C++