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

convert all appearances of NULL in C++ code to nullptr

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • 4.3 Required
    • Internal Code
    • None
    • Fully Compatible
    • Dev Tools 2019-06-17
    • 100

    Description

      C's NULL has weaker type safety than C++11's nullptr. It's convertible to nullptr_t, but also to integer types (emitting a warning, but still).

      2011 was a while ago. NULL is unnecessary vocabulary, and should be easy to globally replace.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: