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