[SERVER-50695] Make timestamp constructors constexpr Created: 02/Sep/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matthew Russotto Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 Description   

Most of the Timestamp constructors and some of the static methods (e.g. min() and max()) can be made 'constexpr', which would allow things like

class WhateverTest {
   ...
   static constexpr Timestamp testTimestamp = Timestamp(10,1);
}

Mostly useful in tests.


Generated at Thu Feb 08 05:23:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.