bsoncxx::builder::core::view_document() and bsoncxx::builder::core::view_array() should throw when builder top-level BSON datum type is incorrect

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      bsoncxx::builder::core::extract_document() throws bsoncxx::exception when called on a builder where the top-level BSON datum type is an array. Similarly, bsoncxx::builder::core::extract_array() throws when called on a builder where the top-level BSON datum type is a document.

      bsoncxx::builder::core::view_document() and bsoncxx::builder::core::view_array() should similarly throw in these error cases.

              Assignee:
              J Rassi (Inactive)
              Reporter:
              J Rassi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: