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

BSON (and other) client headers should include cleanly in any context.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.1
    • Affects Version/s: 1.5.3
    • Component/s: Internal Client
    • None
    • Environment:
      All

      Many of the client facing headers in mongodb use system functions without including the headers that define those functions: mongo/bson/bsonobjbuilder.h for instance, uses 'pow', but does not include <cmath>, uses 'strlen', but does not include <cstring>, etc. Similarly, the BSON headers are not complete among themselves: bsonobjbuilder.h uses util/builder.h, but does not include it.

      Every client facing header should compile cleanly if included as the only text in a .cc file.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: