[SERVER-24651] Add a user defined literal constructor for string data Created: 17/Jun/16  Updated: 14/Jul/16  Resolved: 17/Jun/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 3.3.8
Fix Version/s: 3.3.9

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 16 (06/24/16)
Participants:

 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



 Comments   
Comment by Githook User [ 17/Jun/16 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-24651 Add and use string data literals

Replace StringData("foo", StringData::LiteralTag()) with "foo"_sd
Branch: master
https://github.com/mongodb/mongo/commit/907182f4672ab2dcea1e16da5366518a4e44fa8d

Comment by Githook User [ 17/Jun/16 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-24651 Use string data literals
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b74cefef1db1e705dcc0d2a72d12e208992dfc85

Generated at Thu Feb 08 04:07:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.