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

Audit construction, copy, move and destruction of bsoncxx::v0::types::value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc0
    • Affects Version/s: None
    • Component/s: BSON
    • None

      The default constructor and move are intentionally not implemented because we do not wish to have a moved-from state for values. These should be removed from the header.

      For containers that require a default constructible type, one workaround is to use stdx::optional, e.g.

      std::map<char,stdx::optional<bsoncxx::types::value>>
      

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            david.daly@mongodb.com David Daly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: