Ensure std::is_sorted_until is only used when it will respect existing expectations of constant evaluation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2025-04-14
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      GCC sometimes makes std::is_sorted_until not constant-evaluated in debug builds, even though it's been constexpr since C++20. This can cause compilation errors when our calling code expects it to be constant-evaluated. Ensure that we only call it if it will be constant-evaluated from those contexts.

            Assignee:
            James Bronsted
            Reporter:
            James Bronsted
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: