[SERVER-69953] Timer and Stopwatch should be copy assignable Created: 23/Sep/22  Updated: 29/Oct/23  Resolved: 29/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Diener (Inactive) Assignee: Matt Diener (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-68121 clang-tool boost::optional -> std::op... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-10-03
Participants:

 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.



 Comments   
Comment by Githook User [ 26/Sep/22 ]

Author:

{'name': 'Matt Diener', 'email': 'matt.diener@mongodb.com', 'username': 'mattdiener'}

Message: SERVER-69953 Remove const members from Timer and Stopwatch
Branch: master
https://github.com/mongodb/mongo/commit/e560c6c019ec1ab5ad98ee198f84830c31708479

Generated at Thu Feb 08 06:14:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.