Skip to content

Problem with lexical_ordering deprecation #16018

Closed
@brson

Description

@brson

The deprecation note says "Just call .cmp() on an Ordering" but is misleading.

16:52 < Dr-Emann> brson: If you have 2 Ords to compare to 2 other Ords, you can use (a1, b1).cmp(&(a2, b2)). If you only have 2 Orderings, you can write out the match that 
                  lexical_ordering contains, or use (o1, o2).cmp(&(Equal, Equal)). (but that's pretty unintuitive)
16:52 < Dr-Emann> Either way, the deprecation note should be changed. (or removed. I kinda like having that as a convenience function.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions