Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28634

Do not rely on the value of __cplusplus for inclusion of void_t

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.5.6
    • 3.5.6
    • None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-04-17

    Description

      visual studio reports 199711L as its __cplusplus version, even when we are running C++ 14. Do not make decisions based on this macro for the inclusion of C++14 features.

      There is a bug report for this that was closed as "deferred" but not actually fixed, it seems:
      https://connect.microsoft.com/VisualStudio/feedback/details/763051/a-value-of-predefined-macro-cplusplus-is-still-199711l

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: