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

[expected.expected] Missing explicit specification for unexpected-converting constructor #5864

Closed
HunterKohler opened this issue Sep 22, 2022 · 1 comment

Comments

@HunterKohler
Copy link

Though shown in the individual constructor descriptions, the explicit specification of the unexpected-converting constructors expected(const unexpected<G> &), and expected(unexpected<G> &&) are not shown in the class overview of expected. See the following descrepency:

draft/source/utilities.tex

Lines 7239 to 7242 in 14a10ef

template<class G>
constexpr expected(const unexpected<G>&);
template<class G>
constexpr expected(unexpected<G>&&);

draft/source/utilities.tex

Lines 7562 to 7565 in 14a10ef

template<class G>
constexpr explicit(!is_convertible_v<const G&, E>) expected(const unexpected<G>& e);
template<class G>
constexpr explicit(!is_convertible_v<G, E>) expected(unexpected<G>&& e);

I'll open a PR for the small change.

@HunterKohler HunterKohler changed the title [expected.expected] Missing explicit specification for unexpected-converting constructor. [expected.expected] Missing explicit specification for unexpected-converting constructor Sep 22, 2022
@jwakely
Copy link
Member

jwakely commented Sep 22, 2022

This is LWG 3754.

@jwakely jwakely closed this as completed Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants