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

2882. Clarify variant construction

Section: 22.6.3.2 [variant.ctor] Status: Resolved Submitter: Switzerland Opened: 2017-02-03 Last modified: 2020-09-06

Priority: Not Prioritized

View other active issues in [variant.ctor].

View all other issues in [variant.ctor].

View all issues with Resolved status.

Discussion:

Addresses CH 8

Clarify variant construction

Proposed change: Add a note that variant<> cannot be constructed.

[2017-02-03, Marshall comments]

[variant]/3 now says "A program that instantiates the definition of variant with no template arguments is ill-formed."

[2017-02-21, Marshall comments]

It appears that the changes requested by this NB comment have already been applied — as part of P0510R0, adopted in Issaquah.

The NB comment is already marked as "accepted", so I suggest we mark the issue as "Resolved".

Proposed resolution:

Resolved by applying corresponding wording changes through P0510R0.