Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8787

Update C++ compiler standard in builds from C++11 to C++17

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.0.0, 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 2
    • Storage - Ra 2022-03-07, Storage - Ra 2022-03-21

      Summary
      As part of our program to define and document compiler and languages standards required to build WiredTiger, the C++ language standard used in WiredTiger builds needs to be updated from C++11 to C++17.

      Motivation

      • Does this affect any team outside of WT?
        Not directly, but it will make it easier for other teams to build and use WiredTiger in the future.
      • Is this issue urgent?
        This is not urgent.

      Acceptance Criteria (Definition of Done)
      This ticket will be done when the C++ language standard in all CMakeLists.txt files (where it is specified) is updated to C++17, and all Evergreen tests are working.

      If not currently specified in any CMakeLists.txt file, then that file does not need updating.

      If any tasks still use old compilers, then they may need to be updated.

      Suggested Solution
      As an example, in cppsuite/CMakeLists.txt, the following line needs to be changed from 

      PUBLIC -std=c++11

      to 
      PUBLIC -std=c++17

            Assignee:
            tammy.bailey@mongodb.com Tammy Bailey (Inactive)
            Reporter:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: