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

Allow public constexpr StringData constructors

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Service arch 2020-05-18

      StringData currently uses a private tag pattern for its constexpr ctor. Since modern compilers can throw from constexpr ctors, we should be able to make the public constructors safely constexpr now.

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

              Created:
              Updated:
              Resolved: