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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.6
    • Affects Version/s: 3.5.6
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 2017-04-17

      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

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

              Created:
              Updated:
              Resolved: