Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2770

Add missing include of postlude header in v_noabi public headers

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change
    • Not Needed

      Some headers that include the v_noabi prelude header are missing a corresponding include of the postlude header, leaking config macros into downstream user code. These headers are:

      • bsoncxx/v_noabi/bsoncxx/builder/list.hpp
      • mongocxx/v_noabi/mongocxx/gridfs/downloader.hpp
      • mongocxx/v_noabi/mongocxx/gridfs/uploader.hpp
      • mongocxx/v_noabi/mongocxx/options/auto_encryption.hpp
      • mongocxx/v_noabi/mongocxx/options/data_key.hpp
      • mongocxx/v_noabi/mongocxx/options/range.hpp

      Adding the missing postlude header include is a source-breaking change, as users that are inadvertently depending on config macros to be defined by including one of these headers (directly or indirectly).

      Consider adding the missing include of the v_noabi postlude header to the affected public header files in the next API major version release.

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: