P4267

Formatting Enums, Upon Reflection

Latest is R1R0

Formatting an enumeration as its underlying type currently requires either a formatter specialization or an explicit conversion at every call site. [P3070] proposed `format_as`, an ADL-based customization point that makes this more convenient and allows the conversion to be performed before type erasure.

Authors
Victor Zverovich
Mailing
2026-09
Doc date
2026-08-20
Audience
LEWGSG16

Revision history

  1. 2026-10
    R1 LEWGSG16

    Formatting Enums, Upon Reflection

  2. 2026-09
    R0 Selected (shown above)