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

      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@mongodb.com David Storch
            Reporter:
            Uyttendaele Simon
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: