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

Add a user defined literal constructor for string data

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.8
    • Fix Version/s: 3.3.9
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Platforms 16 (06/24/16)

      Description

      Providing a user defined literal constructor for string data will allow us to remove the LiteralTag api, while retaining a constructor that's compile time and can detect embedded nulls.

      Compare

      StringData("foo", StringData::LiteralTag())
      

      to

      "foo"_sd
      

        Attachments

          Activity

            People

            Assignee:
            jason.carey Jason Carey
            Reporter:
            jason.carey Jason Carey
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: