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

Client facing headers should not include windows.h

      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.

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

              Created:
              Updated:
              Resolved: