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

Forbid appending unsigned integral types to BSONObjBuilders

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • 4.1 Desired
    • Portability
    • None

    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

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              andrew.morrow@mongodb.com Andrew Morrow
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: