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

add StringBuilder insertion "operator<<" for NamespaceString

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 4.1.8
    • None
    • Storage
    • None
    • Fully Compatible
    • Storage NYC 2019-01-28

    Description

      Currently, to add a NamespaceString to an assertion message using a str::stream(), we have to convert the NamespaceString to a std::string using NamespaceString::ns() or NamespaceString(). It would be convenient to have the following StringBuilder overload so that we can do "str::stream() << nss":

      StringBuilder& operator<<(StringBuilder&, const NamespaceString&);
      

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: