[CXX-1435] problem with the mongocxx::result::insert_many class Created: 19/Sep/17  Updated: 28/Oct/23  Resolved: 22/Jan/18

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.0

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Case:
Backwards Compatibility: Fully Compatible

 Description   

When you copy/construct the mongocxx::result::insert_many class, _inserted_ids contains reference to the class we copied from. Perhaps this could be avoided with a custom copy/constructor that rebuilds the _inserted_id.



 Comments   
Comment by Githook User [ 22/Jan/18 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: CXX-1435 Reconstruct result::insert_many::insertedIds() on copy
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/71d3302f605be30698638d9e23ac68fb098ad42d

Generated at Wed Feb 07 22:02:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.