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

Document if types should be passed by reference or value

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Documentation

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: