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

Fix format strings given as char* (xcode build fix)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Service Arch 2021-03-22

      For example:

      -            static constexpr auto errorMsg =
      +            static constexpr auto& errorMsg =
                       "Failed to complete construction of sharding DDL coordinator";
      

      Without the ampersand, the string literal decays to a pointer.
      FMT_STRING can't use pointers. It needs arrays.

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

              Created:
              Updated:
              Resolved: