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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • None
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: