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

Permit default construction of client/db/collection

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0-rc0
    • None
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: