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

Add C++ compile-time standard detection

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Implementation

      Description

      The driver crashes badly if the library is linked to code not compiled with the same C++ standard level. For instance, if the driver is compiled with C++98 (still the default on GCC 5), but some code using it with C++11, the driver will crash.

      The header could be extended to detect this at run-time. For example, version.h.in could contain a macro to specify the C++ version used during compilation. Then, another macro evaluated on inclusion verifies that this version matches the currently used standard. If not, in #error can be thrown.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: