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

add StringBuilder insertion "operator<<" for NamespaceString

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 4.1.8
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Storage NYC 2019-01-28
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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&);
      

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

              Created:
              Updated:
              Resolved: