-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: 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