Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
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