[CXX-762] Audit construction, copy, move and destruction of bsoncxx::v0::types::value Created: 04/Dec/15  Updated: 11/Jan/16  Resolved: 14/Dec/15

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

Type: Bug Priority: Major - P3
Reporter: David Daly 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   

The default constructor and move are intentionally not implemented because we do not wish to have a moved-from state for values. These should be removed from the header.

For containers that require a default constructible type, one workaround is to use stdx::optional, e.g.

std::map<char,stdx::optional<bsoncxx::types::value>>



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

Author:

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

Message: CXX-762 - Audit construction, copy, move and destruction of bsoncxx::v0::types::value
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/8131a053fb5b75b1ac42aab2cc2ff18f56a919f7

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

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

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