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

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

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: