This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.

2692. Overspecification of lvalueness of bitmask elements

Section: 16.3.3.3.3 [bitmask.types] Status: NAD Submitter: Hubert Tong Opened: 2016-04-14 Last modified: 2017-07-17

Priority: 3

View other active issues in [bitmask.types].

View all other issues in [bitmask.types].

View all issues with NAD status.

Discussion:

The usual pattern now used for identifying where bitmask elements are declared, namely, as variables, preclude declaring them as enumerators.

Compare: ctype_base::space in C++03 subclause 22.2.1 [lib.category.ctype] versus the same in N4582 subclause 22.4.1 [category.ctype].

It is unclear whether this is intentional. Further it is unclear if odr-use of bitmask elements is intended to be allowed.

[2016-05 Issues Telecon]

Jonathan believes that this was intentional, and was done by N3110. Jonathan will provide more precise references.

Proposed resolution: