[SERVER-69556] Replace std::bind by lambda in cascades/implementers.cpp Created: 09/Sep/22  Updated: 29/Oct/23  Resolved: 09/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc2, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alexander Ignatyev Assignee: Alexander Ignatyev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-09-19
Participants:
Linked BF Score: 55

 Description   

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,



 Comments   
Comment by Githook User [ 09/Sep/22 ]

Author:

{'name': 'Alexander Ignatyev', 'email': 'alexander.ignatyev@mongodb.com', 'username': 'aligusnet'}

Message: SERVER-69556 Replace std::bind by lambda in cascades/implementers.cpp
Branch: master
https://github.com/mongodb/mongo/commit/9e44507238c20dade2aac09dcb76adf46a865aae

Generated at Thu Feb 08 06:13:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.