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

Replace std::ranges::sample usage with std::sample for C++17 compliance

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2023-07-10
    • 165

    Description

      SERVER-78052 introduced a usage of std::ranges::sample that is supported starting from C++20. Since there are some build variants still compiling following the C++17 standard, replace it with std::sample.

      Attachments

        Activity

          People

            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: