Skip to content

Operator <=> in Boost.Variant #116

@dmenendez-gruposantander

Description

I'm trying to define a defaulted operator <=> in my own structs that hold boost::variant<>, and I stumbled upon the lack of them.
Would you consider adding operator<=> to boost::variant?

PS: in fact I'm trying to default operator<, which I thought would use boost::variant::operator< (which exists); alas, the default operator< is defined to rely on operator<=> of members, not on operator< of members :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions