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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • 3.7.2
    • Internal Code
    • None
    • Fully Compatible
    • Platforms 2017-12-18, Platforms 2018-01-29

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: