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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Alexander Ignatyev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: