[SERVER-18585] Add comparison operators for StringData and const char[] Created: 20/May/15 Updated: 20/May/15 Resolved: 20/May/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Adam Midvidy | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
I frequently find myself declaring const char[] constants and then comparing them to StringData instances - it would be more convenient if this was actually supported instead of having to construct a temporary StringData. |
| Comments |
| Comment by Adam Midvidy [ 20/May/15 ] |
|
nevermind, this works... |