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

Add fmt::formatter<mongo::HostAndPort>

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.11
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Dev Tools 2019-04-22

    Description

      Allows HostAndPort to be formatted with libfmt, without a toString, etc.
      e.g.:

          s = "couldn't connect to host {}: {}"_format(host, errorMessage);
      

      Attachments

        Activity

          People

            billy.donahue@mongodb.com Billy Donahue
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: