BSONObj comparison

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code, Querying
    • None
    • Query 2017-11-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The DeferredComparison for BSONObj uses BSONObj::woCompare
      In turn, it compares BSONElements using explicitly BSONElement::woCompare

      This misses the opportunity to use the DeferredComparison of BSONElement for overloaded comparison operators.

      Although this is a strong constraint in the current implementation, this does not allow to specify a different BSONElement comparison implementaton using the DeferredComparison mechanism that could be used instead.

      Potential usage: implicit type conversion

              Assignee:
              David Storch
              Reporter:
              Simon
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: