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

Allow public constexpr StringData constructors

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • None
    • None
    • Fully Compatible
    • Service arch 2020-05-18

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: