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

The C++ Driver should define a version macro for the preprocessor

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • legacy-0.8.0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      all

      Currently there is no way to determine the MongoDB C++ Client version at the preprocessing, thus there is impossible to handle in source code the API modifications

      For example in SERVER-10318 it is necessary to differentiate between 2.2.0 and 2.2.1 to select the proper getLastError(...) version at preprocessing with #if.

      Please #define macros for the MongoDB client version.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bszente Balint Szente
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: