Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tsche opened this issue Mar 19, 2025 · 0 comments · May be fixed by #7752
Open

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

Tsche opened this issue Mar 19, 2025 · 0 comments · May be fixed by #7752

Comments

@Tsche
Copy link

Tsche commented Mar 19, 2025

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.

@Tsche Tsche linked a pull request Mar 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant