Skip to content

Strange condition in optional::swap #5033

@kelbon

Description

@kelbon

looks like a typo

void swap(optional& _Right)
        noexcept(...) {
        static_assert(is_move_constructible_v<_Ty>, ...);
        static_assert(!is_move_constructible_v<_Ty> || is_swappable_v<_Ty>, ...)
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions