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

Beginner problems learning new v3 C++ driver API

    • Type: Icon: Task Task
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 0.2.0
    • Component/s: API
    • None
    • Environment:
      ubuntu (14.04 current; standard g++)

      I have had quite a few problems learning to use the new C++ driver. It's things like an apparent inconsistency in bsoncxx/builder/stream/document's handling of open/close document and open/close array, maybe missing overloaded append functions in stream-core, and a lack of clarity about handling types. I've found that I am having to use instances of type::b_document and types::b_array in ways that seem unnatural - but I couldn't find another way to get things to work.
      Attached file has my example program with comments identifying difficulties.
      Are there alternative ways of doing the things where I had problems?

            Assignee:
            Unassigned Unassigned
            Reporter:
            ead Eloise Destelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: