[CXX-1091] document::element::operator[] overloads throw when given an invalid element Created: 17/Oct/16  Updated: 17/Oct/16  Resolved: 17/Oct/16

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

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Backlog - CXX Driver Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CXX-1089 document::element::operator[] overloa... Closed

 Description   

bsoncxx::document::element::operator[] is documented as non-throwing, however the expression bsoncxx::document::element{}["foo"] throws.

A fix for this issue was attempted in CXX-862, but the fix was incomplete.



 Comments   
Comment by J Rassi [ 17/Oct/16 ]

Yep, closed as a duplicate.

Comment by David Golden [ 17/Oct/16 ]

rassi, can I close this as a duplicate of CXX-1089? If you agree with my proposal there, it's a trivial fix that we can do for 3.0.x.

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