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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.2
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      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

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

                Dates

                Created:
                Updated:
                Resolved: