[CXX-1279] Copy assignment for database/collection incorrectly degrades to no-op if rhs is default-constructed Created: 21/Mar/17  Updated: 06/Apr/17  Resolved: 06/Apr/17

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

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

database d1 = client["db"];
database d2;
d1 = d2;
REQUIRE(!d1);  // Expected behavior: assertion passes. Observed behavior: assertion fails.



 Comments   
Comment by Githook User [ 06/Apr/17 ]

Author:

{u'username': u'saghm', u'name': u'Saghm Rossi', u'email': u'saghmrossi@gmail.com'}

Message: CXX-1279 Copy assignment for database/collection incorrectly degrades to no-op if rhs is default-constructed
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/123a3fb835d53b3396e95136b61b66087a108827

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