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

Add a user defined literal constructor for string data

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.9
    • Affects Version/s: 3.3.8
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Platforms 16 (06/24/16)

      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
      

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: