Skip to content

[variant.ctor] missing Throws clause on the last ctor #7751

Open
@Tsche

Description

@Tsche

The last constructor in variant.ctor is missing the Throws clause. I believe this inconsistency is a simple editorial issue, since the three preceeding (very similar!) constructors all explicitly say

Throws: Any exception thrown by calling the selected constructor of T(i)

This should be added to the constructor

template<size_t I, class U, class... Args>
  constexpr explicit variant(in_place_index_t<I>, initializer_list<U> il, Args&&... args);

as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions