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

mongocxx::result::insert_many::inserted_ids() should be const

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      mongocxx::result::insert_many::inserted_ids() does not modify the object, is thread-safe, and does not affect the results of future methods calls, so it should be const. This is similar to result::bulk_write::upserted_ids(), which is already const.

      Original description:

      Check all member functions for whether they can or should be made noexcept, or constexpr, or even just const.

      Subsequent previous description:

      Check all member functions for whether they can or should be made const.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: