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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: API
    • Labels:
      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: