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

Add static factory function to Duration that does not throw

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Ex:

      int ms = 12341234;
      auto millis = representAs<Milliseconds>(ms);
      
      // use case I want:
      fn( representAs<Milliseconds>(userInputMs).value_or(Milliseconds::max()) );
      

            Assignee:
            backlog-server-devtools DO NOT USE - Backlog - Dev Tools
            Reporter:
            matt.cotter Matt Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: