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

Forbid appending unsigned integral types to BSONObjBuilders

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

      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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: