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

Client facing headers should not include windows.h

    XMLWordPrintableJSON

Details

    Description

      If you use the C++ client driver headers, you automatically include windows.h, and get WIN32_LEAN_AND_MEAN set, via our windows_basic.h header. Our driver shouldn't drag all of windows.h into scope just to talk to the database. windows_basic.h should only be included in .cpp scope, not header scope.

      See HELP-78 for examples of where this causes problems in practice.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: