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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Dev Tools 2019-02-25, Dev Tools 2019-04-08

      • 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*.

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

              Created:
              Updated:
              Resolved: