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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0-rc0, 3.6.0
    • Affects Version/s: 3.4.0
    • Component/s: BSON
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Kevin Albertson
            Reporter:
            Rohit Vishwakarma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: