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

Permit default construction of client/db/collection

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      Per this SO post:

      http://stackoverflow.com/questions/30330349/how-do-you-declare-a-variable-for-a-class-whose-constructor-takes-an-rvalue

      There may be situations where it is useful to default construct a database, collection, or client. Such an object is not in a valid state, and should be equivalent to a moved-from object of the same type.

      We should probably also provide an explicit operator bool so that one can test whether these vocabulary types are in valid states.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: