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

Replace strtod/strtol/atoi/atol/etc calls with parseNumberFromString<T>.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • None
    • None
    • Internal Code
    • Dev Tools 2019-02-25, Dev Tools 2019-04-08

    Description

      • strtod on Windows cannot parse +/-Infinity or NaN.
      • Proper error checking is error prone for strtol and strtod, atoi, etc.

      Exclude mongo/db/json.cpp (JSON parser), which depends on the integrated lex/parse behavior of strto*.

      Attachments

        Issue Links

          Activity

            People

              andrew.morrow@mongodb.com Andrew Morrow
              schwerin@mongodb.com Andy Schwerin
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: