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

Add comparison operators for StringData and const char[]

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Internal Code
    • None
    • Fully Compatible

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: