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

Replace std::duration types with implementations that throw exceptions on overflow

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.8
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Sharding 14 (05/13/16), Sharding 15 (06/03/16)
    • 0

      The std::duration types, which underly stdx::duration, have undefined behavior on overflow and in some other situations that we can easily and inadvertently encounter. Since we do not require optimal arithmetic performance on our duration types, it would be better to replace them with implementations that throw on overflow.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: