C++ Logo

std-proposals

Advanced search

[std-proposals] D0000R0: Extensible Scoped Enumerations (draft)

From: Andrey Fokin <lazzyfox_at_[hidden]>
Date: Fri, 29 May 2026 21:32:12 +0300
D0000R0: Extensible Scoped Enumerations (draft)
Author: Andrey Fokin lazzyfox_at_[hidden]
Date: 2026-04-20

Hello all,

I am submitting a draft proposal for review:

    PDF:
https://github.com/lazzyfox/wg21/blob/main/docs/D0000R0-ExtensibleScopedEnumerations.pdf

Summary:
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.
Idea already was being discussed in
https://lists.isocpp.org/std-proposals/2026/04/18118.php

Thanks,
Andrey Fokin
lazzyfox_at_[hidden]

-- 
BRG,
      Andrey

Received on 2026-05-29 18:32:26