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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-rc0
    • Component/s: BSON
    • Labels:
      None
    • Sprint:
      Platform D (12/11/15), Platforms E (01/08/16)

      Description

      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>>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: