[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: |
|
||||||||
| 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: |