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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2023-07-10
    • 165
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: