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

Make timestamp constructors constexpr

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Replication

    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.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: