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

log() should handle std::string_view

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • None
    • None
    • Fully Compatible
    • Dev Tools 2020-03-09

    Description

      This seems an easy thing to write. I just stumbled upon something like this in a code review:

      unittest::log() << "foo " << std::string(myStringView) << " bar";
      

      Given our usually accommodating logger system, this seems a bit jarring.

      Attachments

        Activity

          People

            billy.donahue@mongodb.com Billy Donahue
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: