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

Remove stdx::bind (and others from functional.h)

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.7.2
    • 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

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: