Skip to content

Unnecessary std:: prefixing of std::xxx_ordering #8146

@eisenwave

Description

@eisenwave

[[nodiscard]] virtual std::strong_ordering operator<=>(const X&) const = default;

[[nodiscard]] virtual std::strong_ordering operator<=>(const X&) const = default;

draft/source/overloading.tex

Lines 1969 to 1970 in c3bd02a

friend std::weak_ordering operator<=>(const S&, int); // \#1
friend std::weak_ordering operator<=>(int, const S&); // \#2

std::partial_ordering operator<=>(@\placeholder{L}@, @\placeholder{R}@);

To my understanding, basically all of these are wrong (including occurrences outside of synopses). We don't use std:: prefixes usually (especially not in synopses) with some exceptions such as std::move.

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