[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: |
| Comment by Tess Avitabile (Inactive) [ 01/Dec/15 ] |
| 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 ] |
| 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. |