Skip to content

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

Closed
@jhunterkohler

Description

@jhunterkohler

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.

Activity

changed the title [-][expected.expected] Missing explicit specification for unexpected-converting constructor.[/-] [+][expected.expected] Missing explicit specification for unexpected-converting constructor[/+] on Sep 22, 2022
jwakely

jwakely commented on Sep 22, 2022

@jwakely
Member

This is LWG 3754.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @jwakely@jhunterkohler

      Issue actions

        [expected.expected] Missing explicit specification for unexpected-converting constructor · Issue #5864 · cplusplus/draft