[SERVER-64553] StringData comparisons should be constexpr Created: 16/Mar/22  Updated: 29/Oct/23  Resolved: 18/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

This enables things like:

constexpr auto kGreeing = "hello world"_sd;
 
// somewhere else:
static_assert(kGreeting == "hello world"_sd);



 Comments   
Comment by Githook User [ 18/Mar/22 ]

Author:

{'name': 'Mathias Stearn', 'email': 'redbeard0531@gmail.com', 'username': 'RedBeard0531'}

Message: SERVER-64553 make StringData comparisons constexpr
Branch: master
https://github.com/mongodb/mongo/commit/b6688d9a44715e1472c1204c069b635325727715

Generated at Thu Feb 08 06:00:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.