[CXX-753] Allow copying of databases Created: 01/Dec/15  Updated: 11/Jan/16  Resolved: 03/Dec/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

See TODO at the top of database.hpp



 Comments   
Comment by Githook User [ 03/Dec/15 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: CXX-753 - Allow copying of databases
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/a8bb46ba86c6442af5fd7cdf7155ec1c1ed235be

Comment by Tess Avitabile (Inactive) [ 01/Dec/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/382

Comment by Tess Avitabile (Inactive) [ 01/Dec/15 ]

Sam and I discussed, and we can just copy the pointer to the mongocxx::client::impl.

Comment by Tess Avitabile (Inactive) [ 01/Dec/15 ]

samantha.ritter

Comment by Tess Avitabile (Inactive) [ 01/Dec/15 ]

I'm not certain this is possible yet, since the mongocxx::database::impl contains a mongocxx::client::impl, which contains a mongoc_client_t, which does not allow copying.

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