Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31773

BSONObj comparison

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code, Querying
    • None
    • Query 2017-11-13

    Description

      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

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            Uyttendaele Simon
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: