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

Timer and Stopwatch should be copy assignable

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Service Arch 2022-10-03

    Description

      Const members in Timer and Stopwatch prevent them from being copy-assignable. This introduces limitations when trying to use boost::optional<Timer>, for example.

      There is no reason for these members to be const. Their implementations should ensure those private members don't change.

      Attachments

        Activity

          People

            matt.diener@mongodb.com Matt Diener (Inactive)
            matt.diener@mongodb.com Matt Diener (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: