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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.7.1
    • 1.5.3
    • Internal Client
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: