Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1841

Document if types should be passed by reference or value

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Documentation
    • Labels:

      should I have and pass mongocxx::collection by value or ref? Similar for most other types. Intended ownership model is hard. Maybe it’s safest to always just use value but it’s not clear what the “cost” is to copy and the instinct is to pass by ref wherever possible

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: