Forbid appending unsigned integral types to BSONObjBuilders

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • 4.1 Desired
    • Affects Version/s: None
    • Component/s: Portability
    • None
    • Service Arch
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: