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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Platform 00 2/20/15

      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.

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: