D0000R0: Extensible Scoped Enumerations (draft)
Author: Andrey Fokin
lazzyfox@gmail.comDate: 2026-04-20
Hello all,
I am submitting a draft proposal for review:
PDF:
https://github.com/lazzyfox/wg21/blob/main/docs/D0000R0-ExtensibleScopedEnumerations.pdfSummary:
This draft proposes an extension to scoped enumerations allowing a scoped enum to reuse enumerators from one or more existing scoped enums and add new enumerators while preserving strong typing. The draft discusses single-base and multiple-base forms and outlines design questions; a Proposed Wording section will follow in a subsequent revision.
Request:
Please review and provide feedback. I would appreciate guidance from editors on preferred repository placement and whether the committee prefers initial wording for single-base only.
Notes:
This is an early draft (Proposed Wording section incomplete).
I can prepare an updated revision (D0000R1) with Proposed Wording if requested.