-
Type: Improvement
-
Resolution: Fixed
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
Platforms 2017-12-18, Platforms 2018-01-29
Nearly all uses of std::bind (and therefore its alias stdx::bind) are superseded by polymorphic lambdas in C++14. There are approximately 200 uses that can be relatively easily be replaced with cleaner and safer lambda code.
Code relying on std::bind incurs some subtle risks that we don't need to take.
https://stackoverflow.com/questions/1930903/bind-vs-lambda
- depends on
-
SERVER-32414 Remove stale `stdx::` requirements from lint.
- Closed
- related to
-
SERVER-47825 Use std::bind only when necessary (roughly never)
- Closed