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

Change pass-by-ref of StringData to pass-by-value

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Platform 00 2/20/15

      Description

      Based on the investigations here:

      http://stackoverflow.com/questions/27256377/c-view-types-pass-by-const-or-by-value/27260446#27260446

      We have concluded that our idiomatic passing of StringData by const& is probably not correct.

      We should re-write all 'const StringData&' to 'StringData.

        Attachments

          Activity

            People

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            acm Andrew Morrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: