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

Remove copying implicit conversions between NamespaceString and std::string.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.7.0
    • None
    • Internal Code
    • None
    • Fully Compatible

    Description

      These implicit conversions are dangerous when combined with pass-by-reference, plus they introduce unexpected copies.

      While it would be ideal to remove all implicit conversion between the types, an expedient step along the way is to remove implicit construction of NamespaceStrings and std::strings, while still allowing implicit casting from const NamespaceString& to std::string&.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: