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

bsoncxx::element::array does not expose key() function

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.4.0
    • 3.6.0-rc0, 3.6.0
    • BSON
    • None
    • Fully Compatible

    Description

      I'm currently writing generic template function that will recursively serialize and deserialize the object from document::element. Everything works fine until it encounters an array field.

      array::element currently inherits document::element, therefore important function key() is not available to check field name before deserializing. 

      Please see the code comment line#6.

      Attachments

        1. 1.cpp
          3 kB
          Rohit Vishwakarma

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            inbox.rohitv@gmail.com Rohit Vishwakarma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: