Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1091

document::element::operator[] overloads throw when given an invalid element

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BSON
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: