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

Make timestamp constructors constexpr

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: