Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
None
-
None
-
Service Arch
Description
The BSONObjBuilder has overloads that allow appending unsigned integral types (notably size_t). This doesn't have good semantics, since the underlying BSON specification doesn't offer unsigned types.
We should remove these overloads, and require that only signed types be able to be directly appended. This will force call sites to make choices, as they probably should be doing.
Attachments
Issue Links
- duplicates
-
SERVER-43762 tighten the overload set for BSONObjBuilder::appendNumber
-
- Closed
-