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

Replace std::bind by lambda in cascades/implementers.cpp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc2, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QO 2022-09-19
    • 55

      clang linter of MongoDB toolchain version 4 complains on using std::bind:

      src/mongo/db/query/optimizer/cascades/implementers.cpp:780:34: error: prefer a lambda to std::bind [modernize-avoid-bind,-warnings-as-errors]
              auto makePredicate = std::bind(&elemMatchMakePredicate,
      

            Assignee:
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Reporter:
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: